Jump to content
Sign in to follow this  
manetho

Script that checks if a process is running and if not starts it

Recommended Posts

manetho

I'm new to scripts so can someone tell me how to make a script that checks if a program is running and if not start that program and repeat this like every 5 minutes?

Share this post


Link to post
Share on other sites
sleepydvdr

This should do it:

$i = 0
Do
If ProcessExists("Process.exe") Then
    Sleep(30000)
Else
    Run("c:\Program Files\A Program\Process.exe")
EndIf
Until $i = 1

#include <ByteMe.au3>

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  

×

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.