mvidal Posted August 11, 2006 Share Posted August 11, 2006 Why wont run("$CmdLine[1]") work? autoit tries to run the literal text $CMDLine[1]. I also tried without the quotes. Link to comment Share on other sites More sharing options...
GaryFrost Posted August 11, 2006 Share Posted August 11, 2006 Why wont run("$CmdLine[1]") work? autoit tries to run the literal text $CMDLine[1]. I also tried without the quotes. Try: run($CmdLine[1]) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
sshrum Posted August 11, 2006 Share Posted August 11, 2006 What Gafrost sed plus: What is the command line that you are trying to run? IE: myscript.exe foo bar this=that This may provide some info on what is going wrong. Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot' Link to comment Share on other sites More sharing options...
mvidal Posted August 11, 2006 Author Share Posted August 11, 2006 I get an error with run($CmdLine[1]) I know the command line is ok because MsgBox(4096, $CmdLine[1], $CmdLine[1], 20) shows the correct text. I get AutoIt Error Line 0 (file "c:\path\CompiledAutoItScript.exe)"): run($CmdLine[1]) Error: Unable to execute the external program. Link to comment Share on other sites More sharing options...
BPBNA Posted August 11, 2006 Share Posted August 11, 2006 Try Run('"' & $CmdLine[1] & '"') Also double check the path of the file to make sure it exists. Link to comment Share on other sites More sharing options...
BigDod Posted August 11, 2006 Share Posted August 11, 2006 (edited) Surely $CmdLine[1] is just a command line parameter to your program and not a program in its own right. Edited August 11, 2006 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
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