It is currently Fri Sep 10, 2010 5:43 pm




Post new topic Reply to topic  [ 2 posts ] 
 How to run multiple Windows commands in the RunCommand step? 
Author Message
User avatar

Joined: Wed Jul 15, 2009 8:06 am
Posts: 33
Points: 520
Post How to run multiple Windows commands in the RunCommand step?
How do I run multiple commands in the Run Command step on Windows?

The Run Command step accepts a single line as its input so all of the commands must be concatenated. You will need to use the Windows command separator of double ampersands - '&&'. A typical example would be changing directory before executing the command. The following example will change directory to the O: drive before running 'dir':
Code:
cmd /c cd /d o:&&dir


Thu Dec 24, 2009 1:30 am
Profile
User avatar

Joined: Mon Feb 16, 2009 3:17 pm
Posts: 21
Points: 370
Post Re: How to run multiple Windows commands in the RunCommand step?
Note: As of version 5, you can put any script you wish into the RunCommand window without having to prefix 'cmd /c', it will evaluate each command as a single script.


Mon Mar 01, 2010 2:32 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin.