You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@echo OFF
SET Spec=ST2.
FOR %%V IN ('TYPE %Spec%') DO SET X=%%V
ECHO %X%
PAUSE
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 much 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 macro.
Have you checked that no similar question(s) exist?
I have searched and didn't find any similar question.
Code of Conduct & Contributing Guidelines
I agree to follow the code of conduct and the contributing guidelines.
The text was updated successfully, but these errors were encountered:
Question
@echo OFF
SET Spec=ST2.
FOR %%V IN ('TYPE %Spec%') DO SET X=%%V
ECHO %X%
PAUSE
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 much 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 macro.
Have you checked that no similar question(s) exist?
Code of Conduct & Contributing Guidelines
The text was updated successfully, but these errors were encountered: