I have a batch file that contains kill command to stop execution of my application but I just want my application to run the ShutdownHandler
before stopping execution.
Same happens in my application when use ctrl+c.
set /p evt=< bin/evtPid.txt
set /p jvt=< bin/jvtPid.txt
taskkill /pid %evt%
taskkill /pid %jvt%