New
#11
Thanks guys, i'll also give System Scheduler a try. I think DavidE is right in what he says, it's probably not necessary to have the program close/restart and 'Restart Me' seems to work flawlessly.
The only reason i was wanting it to close and restart at a user defined interval was for stability issues. Sometimes the jumi.exe file doesn't actually crash, it hangs, and ReStart Me doesn't pick this up. But it does solve my problem for the most part in that i'd say 80% of the time it crashes, and probably only 20% of the time it hangs.
Regards
Andy
Which statement gets the "not recognized as an internal or external command ..." error ?
If you have the pause statement in the BAT file, can you post a screen print of the BAT CMD window showing the error(s) ?
Did you look in Event Viewer to see if anything is logged ?
Are you sure Jumi.exe is listed in Task Manager / Processes as an Image Name ?
With your "20% hang" comment, you do have a reason for using a scheduled "kill" task ...
If we can't find a fix for the problem(s), you might be best with a combo of a scheduled task and using ReStartMe...
Thanks DavidE, below is a screenshot of the .bat file. I've also enclosed a screengrab of the processes (below the batch file screengrab), jumi.exe is listed there as a task.
Yeah i do hope for a solution to the stop/restart issue, but for the time being RestartMe goes a long way in sorting out any crashes on the program
Back in post #5 you stated
There is probably a folder missing from that location for the Jumi.exe ...The file location is C:\Program Files (x86)\Jumi.exe
It's probably something like C:\Program Files (x86)\Jumi\Jumi.exe
Hmm you have a point DavidE. However, i've just tried it as C:\Program Files (x86)\Jumi\jumi.exe (which is correct), but it does not kill it or reopen it. It appears to close the program (the program minimises off screen), but it does not kill the program (or it's entry in task manager)... I give up :S
Regards,
Andy
It might also be killing and restarting but is not apparent in Task Manager because of timings and displayed info ?
In Task Manager > Processes
Click View > Select Columns...
Select the PID (Process Identifier) column, so you see the PID column in TM.
If the PID changes when you run the BAT file, it has restarted ...
Hi DavidE, it's definitely not killing it because if i actually 'force' kill it then it takes time to reopen itself and re-establish an internet connection. This takes around 1 minute or so. When i use the batch file it still sits there (although minimised) with a connection throughout.
Best Regards
Andy
Try using the /F (force) option with this command:
taskkill /F /im Jumi.exe