How to run program

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
timle
Pro Scripter
Posts: 96
Joined: Tue Apr 20, 2004 5:53 am

How to run program

Post by timle » Thu Sep 20, 2007 6:41 pm

I have a .bat file in the C drive.
Do I use" run program" command or ExecuteFile command

thanks

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Sep 20, 2007 7:03 pm

Either will work for .bat files.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Sep 20, 2007 7:06 pm

Do I use" run program" command or ExecuteFile command
The short answer is yes.

The long answer is either will work with a batch file but Run Program> will give you some control by using RP_WAIT and RP_WINDOWMODE where ExecuteFile> will simply execute the batch file with no other control available. Look in help to see how these functions work and what RP_WAIT and RP_WINDOWMODE can do when using Run Program>.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts