Jump to content

How To Be Sure That My Script.exe Always Is Running?


Recommended Posts

I have a script.exe in the Autostart folder. It is invoked by a hot key. If an error occurs in the script then the exe file is not running anymore after that and the hot key doesn't work.

How can I make sure that the exe file is always running even if an error occurs in the script?

Regards,

T

Link to comment
Share on other sites

Funny i just scripted this :think:

Opt("TrayIconHide", 0);Change 0 to 1 to hide the tray icon
Opt("RunErrorsFatal", 0)

While 1
    If Not ProcessExists("My Script.exe") Then
        Run("My Script.exe")
    EndIf
WEnd

Run this along with the My Script.exe

[Edit] Oops i misread this, you can just use the option Opt("RunErrorsFatal", 0) i think if that's not working you have to restart the script if it's not running i think

Edited by Manadar
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...