josephstrodel Posted March 10, 2008 Share Posted March 10, 2008 I'm having problems finding with using the run() and runwait() functions. I wrote a few programs to automate all the installs performed at a computer shop. The program worked and has been successfully run many times. All of a sudden, I ran it and the run() function fails to run the exe for each program. There are two parrell scripts, and run() fails in exactly the same way in both. I tried reinstalling autoit and that didn't help. Not sure if there are corrupt libraries or something. I tried writing another script to trace the source of the problem: run("C:\Documents and Settings\jay\Desktop\dev\Complete\Microsoft\dotnetfx 1.1.exe") I get the vague "Unable to execute the external program" error This fails when i run the program but when I try and run that path, it loads just fine. Not really sure what is going on here, one minute the program worked, the next minute everything is broken. Thanks a lot for the help Link to comment Share on other sites More sharing options...
weaponx Posted March 10, 2008 Share Posted March 10, 2008 $path = "C:\Documents and Settings\jay\Desktop\dev\Complete\Microsoft\dotnetfx 1.1.exe" If FileExists($path) Then Run($path) Else MsgBox(0,"ERROR", "Invalid path:" & @CRLF & $path EndIf Link to comment Share on other sites More sharing options...
josephstrodel Posted March 10, 2008 Author Share Posted March 10, 2008 err now that i typed it out like that, it's pretty obvious that it is a lack of double quotes with the path. 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