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: Sleep only when task is finished?

04 Dec 2010   #1

windows 7 64 bit professional
Sleep only when task is finished?

My problem is this: I can control wake up, go to sleep, etc. with scheduled tasks and BAT files.

eE.g. one of my BAT files that sets active a power schame with go to sleep 'never' and hibernate 'never' which I created:

@echo on
rem "Always On" Power Scheme
C:\Windows\System32\powercfg.exe /setactive 613f668b-8d6f-4cb5-a271-db1aea4ca4a3

but I don't know when the application (in this case BitDefender Virus Scan) finishes (unless it is a Windows application and have Event ID's). I am trying to use tricks (e.g. when the application writes a log file at the end, etc.) but this doesn't always work. Using the this tutorial, I either leave the computer on too long, or it shuts down too early. (In Windows XP, it always waited for the application to be finished before the "unattended shut down" period kicked in.

I would greatly appreciate any help with this issue.



My System SpecsSystem Spec


 Sleep only when task is finished?

Thread Tools

Similar help and support threads for2: Sleep only when task is finished?
Thread Forum
How can I set a scheduled task to minimize open windows before sleep? General Discussion
Last update never finished Windows Updates & Activation
Solved How to define task to run when computer wakes from sleep General Discussion
Solved shutdown after finished Software
Sleep through Task Scheduler Performance & Maintenance
Problem with Finished Setup?? Installation & Setup
Task Scheduler Sleep Implementation 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 07:14 AM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33