ok if i ask a DOSbox-X batch, need to read 2nd string
Posted: 14 Feb 2025 01:20
is it ok if i ask a DOSbox-X batch command here?
the commands in there are very limited
SET Spec=ST2.
FOR %%V IN ('TYPE %Spec%') DO SET X=%%V
ECHO %X%
PAUSE
this doesnt work with DOSBox-x
a file ST2. has 2 lines, it goes like this
old ABC
i need a batch that returns a var ABC
2nd line is an empty line
are there batch commands to get the 2nd string ABC?
"old" is the basic compiler's command to load a file ABC
once i exit the basic compiler, i need to send the file "ABC" to a different directory to compile and make an ABC.EXE there
i hope to do it in one batch file
i can not just add a string "ABC" to a batch, it must be read, because i have 10s of "ST2."s from many directories and they are constantly changing, it depends on what file i am working, ST2. is auto-produced by the basic compiler's macro.
the commands in there are very limited
SET Spec=ST2.
FOR %%V IN ('TYPE %Spec%') DO SET X=%%V
ECHO %X%
PAUSE
this doesnt work with DOSBox-x
a file ST2. has 2 lines, it goes like this
old ABC
i need a batch that returns a var ABC
2nd line is an empty line
are there batch commands to get the 2nd string ABC?
"old" is the basic compiler's command to load a file ABC
once i exit the basic compiler, i need to send the file "ABC" to a different directory to compile and make an ABC.EXE there
i hope to do it in one batch file
i can not just add a string "ABC" to a batch, it must be read, because i have 10s of "ST2."s from many directories and they are constantly changing, it depends on what file i am working, ST2. is auto-produced by the basic compiler's macro.