If your server displays a message while attempting to use tskill.exe and you have Windows Vista, it is because Vista DOES NOT COME WITH TSKILL. Now, several people have realized this and are using taskkill.exe with success. For other who recieve errors, its most commonly related to this:
framedynos.dll
There are several ways to solve this problem, and by far the easiest is to download the freeware utility from Mark Russinovich of SysInternals. You can get this utility from Microsoft Technet.
[Only registered and activated users can see links. ]
To use this utility, extract the files to your desktop, and place pskill.exe in your server folder. Run it once to get the initialization and license accept screen. Then change your compiler to read:
Code:
@echo off
color 0a
cls
echo Voule Auto restart
"pskill" /t java
echo Restarting server
title Your Server Title Here
java -Xmx512m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
cls
FAQ:
Q: Will this close my client?
A: Yes, this will close a downloadable client, eg: SilabSofts Client, MoparScape etc.
Don't think this has ever been posted, or I would have found it.
Credits:
Voule Auto Restarter - Gander
PsTools - Mark Russinovich