d0b33
Honorary Master
I would like to use task scheduler to run a script each day putting my PC to sleep, any help would be appreciated.
South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
I would like to use task scheduler to run a script each day putting my PC to sleep, any help would be appreciated.
Erm, what's wrong with the way the normal Power schemes work?
What for - Windows has always had that feature!
I run a program (TV) that prevents sleep so I need a script to force sleep.
A script to kill the program (TV) would be simpler.
I'd imagine put this in a .bat file and have scheduler run the bat. ( minues the < > )
taskkill /im <tvprogram.exe>
Sweeet thanks, it works.
One way, check previous post edit.
Yeah, I'm looking to see witch switch works best and what they do.
Ok thanks.You can also force it (/f ) I think, I wouldn't use it on PID though, that can change.
The following will put your pc to sleep:
rundll32 powrprof.dll,SetSuspendState