Jump to content

problem with run() and runwait()


Recommended Posts

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

$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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...