Sign in to follow this  
Followers 0
josephstrodel

problem with run() and runwait()

3 posts in this topic

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

Share this post


Link to post
Share on other sites



$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

Share this post


Link to post
Share on other sites

err now that i typed it out like that, it's pretty obvious that it is a lack of double quotes with the path.

Share this post


Link to post
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
Sign in to follow this  
Followers 0