Sign in to follow this  
Followers 0
JustDoIt

How to have 2 or more apps running one after the other in one script

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Humm... it works for me. I created a batch file called "batch.bat":

echo hello

pause

and 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 by Nahuel

Share this post


Link to post
Share on other sites

Parameters weren't passed correctly to my app2.exe; that was why it didn't run.

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