![]() This outputs a reminder on how to quit the application (so you don't forget!).echo Press Ctrl-C if you don't want to restart automatically.echo Program terminated at ?te% %Time% with Error %ErrorLevel% > c:\logs\program.log - This is just a bit of logging if you want to figure out how often it crashes and potentially debug the possible cause.If you want to keep the batch file elsewhere, you will need to add a folder path to this - Something like "C:\Program Files\MAME\mGalaxy.exe" Note that this assumes that the application is in the same folder as your new batch file.mGalaxy.exe This starts the application, and waits for it to finish/quit.We'll use this later to jump back to this point. ![]() off - Stops the command prompt from repeating every command. ![]() offĮcho Program terminated at ?te% %Time% with Error %ErrorLevel% > c:\logs\program.logĮcho Press Ctrl-C if you don't want to restart automaticallyĬore concept of this batch borrowed from SuperUser. Instead of running the program, you would run this file instead. You could create a batch file that automatically starts the application, and if it stops, to start it again. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |