i want to kill a java process through a batch file, but safely.
The problem is, when i use
taskkill /IM java.exe
it wont kill the process because java doesn't allow it.
When i use
taskkill /F /IM java.exe
it works, but there is the risk that files could corrupt, so i don't want to use it.
The subject is to stop a minecraft server which is running on windows. One option on linux is to use screen
so i can send a stop
-command to this virtual command line but as i know this programm doesn't work on windows. Is there mayby an alternative?