Guys, I am working with an issue with a mining app closing itself while in use so I found a batch file to restart the app if it closes: So I am testing this now but I want to generate a simple log file to tell me when it restarted, so I can see how often it does this and how long between. Will this work: Do I have to echo off before goto start? Do I need to create the log file with set filename or set path? Or just create it in the same folder? Any help would be great.