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?
Here’s what I meant in my comment.
master.bat
command.bat
Prints the below for me.
To start off from the first line, use
+0.If you want this number to be sent via command line, here is a slightly modified version:
command.bat
You can run the above with commands such as
command.bat 0orcommand.bat 3.