JustDoIt Posted September 19, 2007 Share Posted September 19, 2007 How to have 2 or more apps running one after the other in one script. Run("app1.bat") Run("app2.exe") But when app1 finishes, it did not call app2.exe but exits out. How do I get both app1 and app2 running one right after the other ? Thanks. Link to comment Share on other sites More sharing options...
Nahuel Posted September 19, 2007 Share Posted September 19, 2007 (edited) Humm... it works for me. I created a batch file called "batch.bat":echo hellopauseand then I used this script.Run("batch.bat") Run("notepad.exe")Works perfectly, even if the batch file has a pause.Now, if you use:RunWait("batch.bat") Run("notepad.exe")it will wait for you to press a key in the batch file so it finishes and then open notepad.It works perfectly here. Maybe it has something to do with your AutoIt version? Edited September 19, 2007 by Nahuel Link to comment Share on other sites More sharing options...
JustDoIt Posted September 20, 2007 Author Share Posted September 20, 2007 Parameters weren't passed correctly to my app2.exe; that was why it didn't run. 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