AdamW Posted December 14, 2006 Posted December 14, 2006 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??
MHz Posted December 14, 2006 Posted December 14, 2006 (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-') Edited December 14, 2006 by MHz
HardCopy Posted December 14, 2006 Posted December 14, 2006 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now