windows scheduler fails to activate jar when on batteries

avivlevi815

New member
Local time
5:39 AM
Messages
1
hello everyone,
I'm new to this forum - hope we will have a nice time

I'm trying for days 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.
 

My Computer My Computer

At a glance

windows 7 professional, 64 נןאץ
Computer type
Laptop
Computer Manufacturer/Model Number
lenovo
OS
windows 7 professional, 64 נןאץ
Welcome back.
I think that the scheduler task is OK. If it works on AC power and never on batteries, the trick must be under power settings.
 

My Computers My Computers

  • At a glance

    Windows 7 HP 64i5 6600K - 800MHz to 4200MHz4+4G GSkill DDR4 3000IG - Intel 530
    Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    custom build
    OS
    Windows 7 HP 64
    CPU
    i5 6600K - 800MHz to 4200MHz
    Motherboard
    GA-Z170-HD3P
    Memory
    4+4G GSkill DDR4 3000
    Graphics Card(s)
    IG - Intel 530
    Monitor(s) Displays
    Samsung 226BW
    Screen Resolution
    1680x1050
    Hard Drives
    (1) -1 SM951 – 128GB M.2 AHCI PCIe SSD drive for Windows 7 and Lubuntu
    (2) -1 WD SATA 3 - 1T for Data
    (3) -1 WD SATA 3 - 1T for backup
    PSU
    Thermaltake 450W TR2 gold
    Keyboard
    Old and good Chicony mechanical keyboard
    Mouse
    Logitech mX performance - 9 buttons (had to disable some)
    Internet Speed
    500Mb/s
    Browser
    Firefox 64
    Other Info
    TinyWall firewall
  • At a glance

    Windows 7 Proi7-4500U 800MHz to 3.0GHz(4+4)G DDR3 1600IG intel 4400 + NVIDIA GeForce GT 745M
    Computer type
    Laptop
    System Manufacturer/Model Number
    Asus Q550LF
    OS
    Windows 7 Pro
    CPU
    i7-4500U 800MHz to 3.0GHz
    Motherboard
    Asus Q550LF
    Memory
    (4+4)G DDR3 1600
    Graphics Card(s)
    IG intel 4400 + NVIDIA GeForce GT 745M
    Sound Card
    Realtek
    Monitor(s) Displays
    LG Display LP156WF4-SPH1
    Screen Resolution
    1920 x 1080
    Hard Drives
    BX500 120G SSD for Windows and programs +
    1T HDD for data
    Internet Speed
    500 Mb/s
    Browser
    Firefox
    Other Info
    TinyWall firewall
Back
Top