1.

Solve : how to include multiple commands in FOR loop?

Answer» HI, Everyone!
I have a question.
In MS-DOS in a batch file I have a FOR loop

for %%d in (1 2 3 4 5) do

after DO I want to have multiple COMMANDS
How do I do that?
Thank you!
DorothyHello,

You can call ANOTHER batch file after do command.

For example:

for %%d in (1 2 3 4 5) do call another.bat %%d

The another.bat batch file can have some commands and it will be executed with %%d parameters any times.



Discussion

No Comment Found