xandout Posted October 26, 2009 Share Posted October 26, 2009 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? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 26, 2009 Share Posted October 26, 2009 Try RunWait(). .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
xandout Posted October 26, 2009 Author Share Posted October 26, 2009 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")... Link to comment Share on other sites More sharing options...
xandout Posted October 26, 2009 Author Share Posted October 26, 2009 Try RunWait().thanks man ill try that also Link to comment Share on other sites More sharing options...
omikron48 Posted October 26, 2009 Share Posted October 26, 2009 (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 October 26, 2009 by omikron48 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