aviv levi
New Member
- Joined
- Aug 29, 2017
- Messages
- 1
- Thread Author
- #1
hello everyone,
I'm new to this forum - hope we will have a nice time
I'm trying for weeks now to schedule a task to run a jar file every day at 3:20 pm.
the trick is - I want it to work when my laptop is in "sleep" (not "sleep mode").
The best I got was that the jar was succesfully activated on time and when the laptop was on "sleep" , but the scheduler only made it when it was on AC power and never on batteries.
here is ALL I did:
1) setting "allow wake timers" to "Enable" in "Sleep" option on my power settings.
2) created a new task with the following check-box's marked V:
general:
run whether user is logged on or not.
run with highest privileges.
conditions:
wake the computer to run this task
Settings:
allow task to run on demand
stop the task if it runs longer than 3 days
if the running task does not end when requested force it to stop
my trigger is on schedule (as i said above)
my action is :
run a proggram,
proggram/script: C:\ProgramData\Oracle\Java\javapath\java.exe
add arguments: -jar C:\Users\Owner\Desktop\Print.jar
start at: C:\Users\Owner\Desktop
any advice on what may cause it to only run on AC power will be appreciated.
I'm new to this forum - hope we will have a nice time
I'm trying for weeks now to schedule a task to run a jar file every day at 3:20 pm.
the trick is - I want it to work when my laptop is in "sleep" (not "sleep mode").
The best I got was that the jar was succesfully activated on time and when the laptop was on "sleep" , but the scheduler only made it when it was on AC power and never on batteries.
here is ALL I did:
1) setting "allow wake timers" to "Enable" in "Sleep" option on my power settings.
2) created a new task with the following check-box's marked V:
general:
run whether user is logged on or not.
run with highest privileges.
conditions:
wake the computer to run this task
Settings:
allow task to run on demand
stop the task if it runs longer than 3 days
if the running task does not end when requested force it to stop
my trigger is on schedule (as i said above)
my action is :
run a proggram,
proggram/script: C:\ProgramData\Oracle\Java\javapath\java.exe
add arguments: -jar C:\Users\Owner\Desktop\Print.jar
start at: C:\Users\Owner\Desktop
any advice on what may cause it to only run on AC power will be appreciated.