Nibble Guru - Computing queries demystified Wednesday, December 03, 2008
Home
My Account / Register
Login / Logout
Post your Problem!
Search

About Us
Contact Us



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 LoopConfiguration:
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 :
Post a Note :
UserName (not required in anonymous posts)
Password (not required in anonymous posts)
Post Anonymous (check this only if you wish to post anonymously.)
Subject
Comment (limited HTML allowed)



List Home > Programming / Scripting >   [ Post New Problem ]
Copyright © 2001-2008, Nibble Guru