Code: Select all
SET BAT="M:\123.BAT"
ECHO @ECHO OFF> %BAT%
ECHO SET D0=C:\UTILITY\DOSBox-X\!BOX-X-Interface1.BAT>> %BAT%
ECHO.>> %BAT%
ECHO SET D1=C:\UTILITY\EDT\EDT1.EXE>> %BAT%
ECHO SET D2=%%D1%%>> %BAT%
ECHO SET O3="">> %BAT%
ECHO SET C4=dosbox-x1.conf>> %BAT%
ECHO SET V5=2>> %BAT%
ECHO SET V6=4>> %BAT%
ECHO SET V7=1>> %BAT%
ECHO SET E8=0>> %BAT%
ECHO SET E9=1>> %BAT%
ECHO "%%D0%%" %%D1%% %%D2%% %%O3%% %%C4%% %%V5%% %%V6%% %%V7%% %%E8%% %%E9%%>> %BAT%
@ECHO OFF
SET D0=C:\UTILITY\DOSBox-X\!BOX-X-Interface1.BAT
SET D1=C:\UTILITY\EDT\EDT1.EXE
SET D2=%D1%
SET O3=""
SET C4=dosbox-x1.conf
SET V7=
SET E9=
"%D0%" %D1% %D2% %O3% %C4% %V5% %V6% %V7% %E8% %E9%
but i want the result to be like below
@ECHO OFF
SET D0=C:\UTILITY\DOSBox-X\!BOX-X-Interface1.BAT
SET D1=C:\UTILITY\EDT\EDT1.EXE
SET D2=%D1%
SET O3=""
SET C4=dosbox-x1.conf
SET V5=2
SET V6=4
SET V7=1
SET E8=0
SET E9=1
"%D0%" %D1% %D2% %O3% %C4% %V5% %V6% %V7% %E8% %E9%
all i know is that things like 2> 1> have special meanings in DOS batch, but putting it like this way ECHO SET "V6=4">> %BAT% works but causes an output to have "", this means i can not change those numbers fast in a batch file editing because i have to use extra key presses to go over ""'s