Computing.Net > Forums > Programming > FOR multiple commands

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

FOR multiple commands

Reply to Message Icon

Name: CWoodward
Date: May 29, 2006 at 17:30:03 Pacific
OS: Windows XP
CPU/Ram: Intel Celleron
Product: Dell
Comment:

Is there any way to execute multiple commands when using for?

I.E.
FOR %%B IN (*.*) DO (command #1) (command #2)

"If it jams, force it. If it breaks, it needed replacing anyway."
-Murphy's Laws



Sponsored Link
Ads by Google

Response Number 1
Name: uli_glueck
Date: May 30, 2006 at 00:06:26 Pacific
Reply:

FOR %%B IN (*.*) DO (
command #1
command #2
)

hope this helps
uli


0

Response Number 2
Name: CWoodward
Date: May 31, 2006 at 20:55:47 Pacific
Reply:

works great, thanks uli


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Menu in Autoexec.Bat Simple C/C++ Question: HE...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: FOR multiple commands

vb6 for each command www.computing.net/answers/programming/vb6-for-each-command/16081.html

Batch File: For Command Syntax www.computing.net/answers/programming/batch-file-for-command-syntax/9262.html

Bat file to check for multiple files www.computing.net/answers/programming/bat-file-to-check-for-multiple-files/19129.html