Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Starting task on sleep - but computer doesn't wait

25 Feb 2016   #1

Windows 7 Professional x64
Starting task on sleep - but computer doesn't wait

I've set up a sync task that I want to run when the computer sleeps. I have set it up okay in task scheduler, but when I sleep, the computer doesn't wait for it to finish, it just goes to sleep. Then when I wake up, the task finishes.

How do I get it to wait until the task is finished and THEN sleep?

My System SpecsSystem Spec
25 Feb 2016   #2

Windows 7 Home Premium 64bit 6.1 Build 7601 (SP1)

I don't know of a way to do that Darkfalz other than the obvious perhaps, which is to simply walk-away from your PC, having set the task to "wait for idle", and having also set your Power Options to be so long that the task is assured to complete every time (after starting on its own).

Maybe if you tell what specifically you are trying to accomplish when you "shut down" a better suggestion can be made.
My System SpecsSystem Spec
26 Feb 2016   #3

Windows 7 Professional x64

I have a batch file that syncs game saves to a network drive. Obviously I want to do it when I put the computer to sleep so that they are ready to retrieve from another PC when I try, rather than having to wake and sync the previous PC first.
My System SpecsSystem Spec


 Starting task on sleep - but computer doesn't wait

Thread Tools

Similar help and support threads
Thread Forum
BSOD when computer is starting up from sleep mode
Hi everyone, Have been running Win 7 Home Premium Professional 64 in a very stable way for several years in My HP Pavilion Elite HPE desktop computer. Made a real “rookie” mistake recently and changed both graphic card, to GEFORCE GTX1060, and SSD to Toshiba OCZ TR150 at the same time! And of...
BSOD Help and Support
How to define task to run when computer wakes from sleep
Using Task Scheduler, is there any way to define a task that will run whenever the computer wakes up from sleep? I can't seem to find that as an option under Triggers.
General Discussion
Computer turns on, but screen doesn't with Task Scheduler
I was playing around with Task Scheduler to turn on laptop at specific time, it works great. However, while the system starts up just fine, the screen remains black until I touch the mousepad. Now that doesn't seem like a big deal, but what I was experimenting with is having the computer turn...
General Discussion
Task Scheduler doesn't wake up computer
Hi, I noticed somehow my username is logged off if the computer sleeps too long (like during night). If I test the task behind my computer and let the computer sleep for a short while, it automatically awakes. If I allow the computer sleep automatically and for long periods of time, then...
Performance & Maintenance
Task Scheduler wait for action to complete
Hi- I am using Task Scheduler to run an .exe and then a .bat file at a scheduled time each day. However, the run time for the .exe process varies between seconds and hours and I need to be sure that the first process is finished before the second Action (.bat file) is initiated by Task...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 23:34.
Twitter Facebook Google+