Is it possible to create a batch file with a bunch of commands (commands.bat)
ECHO HELLO ECHO HOLA ECHO KONICHIWA ECHO ANYONGHASEYO ECHO BONJOUR , then within a different batch file, CALL commands.bat and only perform the command on line 2 or line 4 without knowing what is on those lines?
echo Holaandecho Bonjourconditional, dependant on a certain argument and while callingcommands.bat, send in that argument.commands.batwhich will only contain the list ofechostatements. Depending on the line number (or range) you may receive, copy the contents from that line number till the end of file into a separate file,temp.batand execute it.