Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: SOLUTION? - Does anyone know how to automatically restart a program if closed??  (Read 2266 times)

0 Members and 1 Guest are viewing this topic.

marknetwork

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 210
  • Last login:December 08, 2011, 02:17:19 pm
  • arcade building can be frustrating...
    • MarkNetwork.com
Hello,

I am building a Golden Tee cabinet and will be basing it off of the Windows Version of Golden Tee, but unfortunately it gives the option of exiting the program.  I've been looking for a solution to automatically reload the program if someone exits.  Is there a script or a program available to do this?

Someone hits exit, or program crashes >> Program automatically restarts if closed

Anyone?? Anything?? Please oh please I have been looking forever!!

Thanks,
Mark
------------
Great people talk about ideas; ordinary people talk about things; small-minded people talk about other people.
------------

<a href="http://www.windowvideos.com">WINDOWVIDEOS.COM</a> - Ambient Video Experiences

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Try a batch file, something like:

Code: [Select]
@ECHO OFF
:START
goldentee.exe
GOTO START

Bill Mote

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 202
  • Last login:May 29, 2010, 11:04:28 pm
  • Focus on making things better not bigger.
    • Things That Make Me Mad and How To Fix Them
Years ago there was a "watchdog" or "daemon" service that would monitor a process and restart it if it died.  After several consecutive failures it would reboot the machine.  I just did a quick search and didn't see anything but what you're looking for does exist.

Search around "watchdog", "daemon", and "critical service monitoring."

dot

marknetwork

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 210
  • Last login:December 08, 2011, 02:17:19 pm
  • arcade building can be frustrating...
    • MarkNetwork.com
Quote
Try a batch file, something like:


Code:
@ECHO OFF
:START
goldentee.exe
GOTO START

THIS WORKED PERFECTLY! THANK YOU SO MUCH!!!!! :)

Mark
------------
Great people talk about ideas; ordinary people talk about things; small-minded people talk about other people.
------------

<a href="http://www.windowvideos.com">WINDOWVIDEOS.COM</a> - Ambient Video Experiences

Havok

  • Keeper of the __Blue_Stars___
  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4530
  • Last login:July 11, 2025, 01:29:48 am
  • Insufficient facts always invite danger.
That doesn't fire off multiple instances of the executable?

Banacek

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 294
  • Last login:November 08, 2017, 05:01:31 pm
That doesn't fire off multiple instances of the executable?

If it does try this:

Code:
@ECHO OFF
:START
start /wait goldentee.exe
GOTO START

Bill Mote

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 202
  • Last login:May 29, 2010, 11:04:28 pm
  • Focus on making things better not bigger.
    • Things That Make Me Mad and How To Fix Them
It shouldn't.  If memory serves you can launch a process from a batch file with @call some.exe.  That will launch the .exe in a separate command process and continue your batch.  The batch as provided will launch the game and won't continue to the next step until the .exe is done (or crashed) ;)

dot