Justin Posted January 31, 2007 Posted January 31, 2007 (edited) I seem to be having a problem running a program with command line parameters from my script. It works fine if I run from a cmd console, but when I run the following code from the script, the exe i'm trying to call says it cannot find the file specified. Any ideas? $GlovePieScriptFile = "Mario_swf" RunWait('GlovePIE029\GlovePie.exe -' & $GlovePieScriptFile) edit: fixed by adding GlovePIE029\ in front of $GlovePieScriptFile Edited January 31, 2007 by Justin
Shevilie Posted January 31, 2007 Posted January 31, 2007 are you sure its not Mario.swf instead of Mario_swf And it might also have something to do with Working dir.. look at the helpfile for Run and RunWait Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
FreeRider Posted February 1, 2007 Posted February 1, 2007 Hello, When I first used parameters I had the same problem... the correct way is to insert a space before the parameter and above all to formally put it between quotes. The variable $GlovePieScriptFile = "kdmkfd" is in the command line interpreted without the quotes. That's why you have to add it again.... Try this : RunWait('GlovePIE029\GlovePie.exe -' & " " & '"' & $GlovePieScriptFile & '"') Rem : The double quote is enclosed in single quotes, that permits to make it visible Bye FreeRider FreeRiderHonour & Fidelity
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