This content has been marked as final.
Show 1 reply
-
1. Re: Close previously opened application
Apod42 May 21, 2014 12:59 AM (in response to Apod42)Found the solution:
Not sure which versions are supported but you can
app.system("Taskkill /F /IM myapplication.exe");This is of course windows only. If this does not work you can write
Taskkill /F /IM myapplication.exeto a bat file and execute that file.var bat = new File("C:/killmyapp.bat"); bat.open("w"); bat.writeln("Taskkill /F /IM myapplication.exe"); bat.close(); bat.execute();This is basically same as terminating application from windows task manager.
