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:
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.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
Post a Comment