Sign in to follow this  
Followers 0
jik

Restart application after crash

2 posts in this topic

hi all,

i want to write a simple script that runs another exe file and which checks if it is still runnning. if the started exe file crashes or gets closed, the script sohuld restart the exe file immediatly. i need the script for an art installation, that should restart an application after crash.

here is what i got until yet - it works so far, but it is not running all the time in backround - think there is missing a loop function. please excuse i am a total beginner with AutoIt:

If ProcessExists("app.exe") Then     
MsgBox(0, "Example", "App is running.") 
Else 
Run("C:\...\app.exe -flags....")
EndIf

thx for you help

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