It is indeed feasible, but what about Unicode? Can we type 1.ini and then look for the required values and generate a new 2.ini?
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
@echo off
setlocal enabledelayedexpansion
for /f "tokens=1,2 delims==" %%i in ('more 1.ini ^| findstr /i /c:"ImageFileName" /c:"ImageFileNumber"') do (
set /a num+=1
if !num! lss 3 (
if /i "%%i"=="ImageFileName" set one=%%j
if /i "%%i"=="ImageFileNumber" set two=%%j
)
)
(
echo
echo Name = NEW ERY
echo Source=FD_INFO
echo
echo Image_Name=%one%
echo Image_Count=%two%
echo Image_Size=51200
echo Image_PerDisc=13
echo Image_Language=1033
)>2.ini
pause