Jump to content
Sign in to follow this  
jik

Restart application after crash

Recommended Posts

jik

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
KaFu

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.