First post, by curvedline
SET Spec=ST2.
FOR %%V IN ('TYPE %Spec%') DO SET X=%%V
ECHO %X%
PAUSE
this batch doesnt work in DOSbox-x
a file ST2. has a line, it is like below
old ABCDE123.TRU
i need to read 4th byte to 11th byte or until i hit the "."
"old" is the basic compiler's command to load a file ABCDE123
once i exit the tbasic compiler, i need to send the file "ABCDE123" to a different directory to compile and make an ABCDE123.EXE there
i hope to do it with one batch file
is there a way?
i may be able to squeeze my basic compiler macro to produce only ABCDE123 without a extension.. but my basic macro is binary, can not replace keys, it doesnt replace, it only adds the same key next to the old key and still consumes the memory of the old key, this means, keeping replacing one same key could consume 640k, and not 1k