Sign in to follow this  
Followers 0
xandout

run one app after first completes

5 posts in this topic

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?

Share this post


Link to post
Share on other sites



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")...

Share this post


Link to post
Share on other sites

Try RunWait().

thanks man ill try that also :)

Share this post


Link to post
Share on other sites

#5 ·  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

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