Sequence of instructions in cmd shell doesn't work #25569
-
I have a sequence of commands in a single step like this:
However, this doesn’t seem to run properly since only the first step executes. All the others are ignored and the next step is executed. How can I get this to execute all the commands inside the run section? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thank you for reporting this issue. This is an expected behavior. In ancient DOS versions it was not possible to recursively execute batch files. Then the call command was introduced that called another cmd shell to execute the batch file and returned execution back to the calling cmd shell when finished. You can use call command before bat file name to
|
Beta Was this translation helpful? Give feedback.
Thank you for reporting this issue. This is an expected behavior.
In ancient DOS versions it was not possible to recursively execute batch files. Then the call command was introduced that called another cmd shell to execute the batch file and returned execution back to the calling cmd shell when finished.
You can use call command before bat file name to