I have a java stand alone application. I build a jar, and I create a .exe file from this jar file.
Then I can start the application by double click on it. Now I need to create a .bat file to close the exe program. Now I build a .bat file like this:
TASKKILL /F /PID easyManagement.exe
pause
the script is executed without error but the program easyManagement is every time on.
EDIT
In task manager I can display my program like this:
This code:
TASKKILL /IM easyManagement.exe
run without error but the application is on every time.