Scheduled Task: Wake from sleep, run task and return to sleep. Possible?

#1
I have a Win7 Ultrabook. I'm using Areca backup software to backup my personal data. I created a Scheduled Task to run my backup weekly.

I set it so that it would wake from sleep to run the task. But I'm having trouble finding a setting to tell it to return to sleep if it woke itself up. Is it possible to do so?

In the alternative, is there something I can insert in my batch file (the scheduled task runs a bat file) to tell my book to enter sleep mode?

TIA!
 


#2
The easiest way to do this is to insert this snippet:
Code:
[LEFT][COLOR=#000000][FONT=Consolas]rundll32.exe powrprof.dll,SetSuspendState[/FONT][/COLOR][/LEFT]
at the end of your batch script.

Note that this will either make your computer sleep or hibernate, depending on whether your computer can hibernate or not. The full article on how to do this is at How to sleep computer via batch file? (Windows 7) - Super User.
 


#3
The easiest way to do this is to insert this snippet:
Code:
[LEFT][COLOR=#000000][FONT=Consolas]rundll32.exe powrprof.dll,SetSuspendState[/FONT][/COLOR][/LEFT]
at the end of your batch script.

Note that this will either make your computer sleep or hibernate, depending on whether your computer can hibernate or not. The full article on how to do this is at How to sleep computer via batch file? (Windows 7) - Super User.
I had similar requirement before, the reference is very good.
thanks.
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.