How to sleep computer via batch file? (Windows 7)
Posted
by Saebin
on Super User
See other posts from Super User
or by Saebin
Published on 2010-05-26T06:16:33Z
Indexed on
2010/05/26
6:22 UTC
Read the original article
Hit count: 234
So I want to make a batch file that will sleep my computer after a period of time.
The closest thing I have found is placing it in standby, but seems to work differently then the sleep button on my keyboard (longer bootup, doesn't wake on mouse click). Any ideas? Would it be easier in python or c#?
The less then ideal technique mentioned above is calling this in the cmd prompt:
Rundll32.exe powrprof.dll,SetSuspendState
© Super User or respective owner