Sign in to follow this  
Followers 0
AdamW

Run, RunWait Commands

3 posts in this topic

Example:

RunWait("C:\Program Files\MSI Source Files\Office2003\setupacc.exe CDCACHE=2 NOCANCEL=1 TRANSFORMS=\\hr-btvl-dss4\msi$\Office2003\HRC_ACC_CO.MST REBOOT=ReallySuppress /qb-")

In above run command C:\Program Files\MSI Source Files\Office2003\setupacc.exe has spaces which causes a error in autoit performing the whole line. Anyone know how to force quotes around just that part of the command so autoit can process the whole instead of error out at the spaces??

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Notice the single quotes wrapping the whole command line and I use double quotes where needed to protect paths with spaces like the same as a passed command at a command prompt.

RunWait('"C:\Program Files\MSI Source Files\Office2003\setupacc.exe" CDCACHE=2 NOCANCEL=1 TRANSFORMS=\\hr-btvl-dss4\msi$\Office2003\HRC_ACC_CO.MST REBOOT=ReallySuppress /qb-')

:P

Edited by MHz

Share this post


Link to post
Share on other sites

Example:

RunWait("C:\Program Files\MSI Source Files\Office2003\setupacc.exe CDCACHE=2 NOCANCEL=1 TRANSFORMS=\\hr-btvl-dss4\msi$\Office2003\HRC_ACC_CO.MST REBOOT=ReallySuppress /qb-")

In above run command C:\Program Files\MSI Source Files\Office2003\setupacc.exe has spaces which causes a error in autoit performing the whole line. Anyone know how to force quotes around just that part of the command so autoit can process the whole instead of error out at the spaces??

U could try enclosing double quotes with single quotes ie ' " blah blah blah " '


Contributions: UDF _DateYearFirstChildren are like Farts, you can just about stand your own.Why am I not a Vegetarian?...Well...my ancestors didn't fight & evolve to the Top of the food chain for me to survive on Salad

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0