a BAT file or something?

Discussion in 'Software' started by Jas107, Oct 13, 2008.

  1. Jas107

    Jas107 Private E-2

    I need to create some sort of file to keep a program running.
    I have a program which runs on a server and enables all the clients to communicate through it and save reports. trouble is it keeps crashing and i have to log straight on and keep opening it. Is there some BAT file or something i can create to keep trying to open this program every 5 mins or so?

    thanks for your time.
     
  2. LI_Geek_95

    LI_Geek_95 Post-and-Run Geek

    Here is the code:

     
    Last edited: Oct 13, 2008
  3. Jas107

    Jas107 Private E-2

    Thanks for the help but i tested it on outlook and it dont seem to restart the program
     
  4. Jas107

    Jas107 Private E-2

    Its ok i managed to work it out after 3 days of trying lol. Will post it just incase someone else wants it:

    @echo off
    cls
    echo Restart Crashing Program...
    title Program Watchdog
    :program
    echo (%time%) program started.
    start /wait (exename).exe
    echo (%time%) WARNING: program closed or crashed, restarting.
    goto program

    thanks for your time anyway
     
  5. LI_Geek_95

    LI_Geek_95 Post-and-Run Geek

    you might wanna fix :p
    just check disable smileys in text
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds