Hello
do you know what condition could I use in batch to run something only if the PC has been ON for longer than X minutes?
I'll explain, I have 2 tasks (useful only when I'm not home and I dont want the PC to be always on) than runs every 12h. The first wakes the PC up and gets some data from an external device and the second puts it back to hibernation after 10 minutes. What I want to do is control the second one, the "put it back to hibernation" task and prevent the execution only if the PC has been on for more than 10 minutes, which means I'm home and using it, so it will prevent the PC to hibernate while I'm using it.
do you know what condition could I use in batch to run something only if the PC has been ON for longer than X minutes?
I'll explain, I have 2 tasks (useful only when I'm not home and I dont want the PC to be always on) than runs every 12h. The first wakes the PC up and gets some data from an external device and the second puts it back to hibernation after 10 minutes. What I want to do is control the second one, the "put it back to hibernation" task and prevent the execution only if the PC has been on for more than 10 minutes, which means I'm home and using it, so it will prevent the PC to hibernate while I'm using it.