java - Setting a .bat file to run at windows shutdown doesn't work -


i need run java application @ windows shutdown. have windows 7 , have tried in 2 ways:

  1. i have created .bat file containing following:

    javaw -xmx200m -jar c:\path\to\jar\dl.jar 

    dl.jar application need run @ shutdown , added in local group policies->windows settings->scripts(stratup/shutdown)->shutdown->script name batch file, doesn't work.

  2. also have added in shutdown scripts local group policies @ script name: c:\windows\system32\cmd.exe , @ script parameters path batch file, doesn't work in way either

if run .bat file command promt works. have idea how make work?


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -