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

Discussion in 'Windows 7 Software' started by doni49, May 21, 2012.

  1. doni49

    doni49 New Member

    Joined:
    May 21, 2012
    Messages:
    38
    Likes Received:
    0
    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. alebcay

    alebcay New Member

    Joined:
    Jul 3, 2012
    Messages:
    96
    Likes Received:
    5
    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. jaydeee

    jaydeee New Member

    Joined:
    Jun 1, 2011
    Messages:
    48
    Likes Received:
    2
    I had similar requirement before, the reference is very good.
    thanks.
     

Share This Page

Loading...