guinness, thank you sir for this wonderful script.  I found some problems:   The tasklist return value, the exe name is cut by 25 characters in length.  So if your exe name is greater than 25 characters then nothing is returned.  If nothing is returned then exe gets ran over and over.   When you close out the exe another cmd.exe gets ran thus making multiple processes and wasting resources.   This one is not a 'huge' problem, but its wasteful.  Multiple .bat files get generat