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
Darkfalz

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
maxseven

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
Darkfalz

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
.

Reply

 Starting task on sleep - but computer doesn't wait




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
System Restore using Task Scheduler - Bypass the 7 Day wait
I am trying to see if there is any way to enable System Restore through Task Scheduler to run every night and by pass the 7 day wait. I understand that there will only be a new system restore created if there have been none for 7 days. I have tons of disk space and would like to find a method...
Performance & Maintenance
Computer doesn't sleep when idle
I've been using my computer for about a month and the sleep function has worked perfectly until lately. It has been correctly going to sleep when commanded from the Start menu, and also after the allotted time (30 minutes) goes to sleep when the computer is idle. But, for the last few days, it...
Performance & Maintenance
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 11:14.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App