Jump to content

Run, RunWait Commands


AdamW
 Share

Recommended Posts

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??

Link to comment
Share on other sites

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
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...