|

List Home > Programming / Scripting > [ Post New Problem ]
Welcome back !
| TrackingID : | 4791 |
| Posted : | Monday, July 18th, 2005 08:49:55 AM |
| By : | ccanj |
| Batch File For Loop | Configuration: |
Does anybod know if the command part of a for loop can contain more that one command, and what the syntax might be.
Additional Comments: I need to execute a program and then check the return code for every every token in a text file. I can get the program to run in the for loop, but how do I check the return code for each instance of the DO?
| Operating System : Windows XP
CPU/Processor : 2300 MHz
RAM : 1GB
|
Related Problems : Comments :
Re: Batch File For Loop by Anonymous Ghost on July 18th, 2005 09:01:35 AM for ...
do
cmd1
cmd2
cmd3
done
in case due to some reason, that doesn't work, you can always use GOTO to program your way out.
:LOOP
cmd1
cmd2
==increment counter here==
==if counter reached end, then GOTO END==
GOTO LOOP
:END |
Related Problems :
List Home > Programming / Scripting > [ Post New Problem ] |
|