Jump to content

Recommended Posts

Posted

Ok i am making an auto run cd for doing system restores and i need to run app1.exe and when it is done i need to run app2.exe all of my appx.exe files are comppileed .au3's what is the cleanest way to do this?

Posted

Ok i am making an auto run cd for doing system restores and i need to run app1.exe and when it is done i need to run app2.exe all of my appx.exe files are comppileed .au3's what is the cleanest way to do this?

i figured it out

Run ("app.exe")
ProcessWaitClose ("app.exe")
Run ("app2.exe")...
Posted (edited)

Actually, if you're going to use ProcessWaitClose at all, you should use the process ID instead of the process name. It's more helpful, especially when you may have multiple instances running.

$pID = Run(foo.exe)
ProcessWaitClose($pID)
Edited by omikron48

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
×
×
  • Create New...