Windows 7 Forums


Windows 7: Timed Shortcut for sleep/hibernation?

17 Jun 2010   #1

Windows 7 Home (x64)
UK
 
 
Timed Shortcut for sleep/hibernation?

Hi, so I have 10,000msecond(2.7hour) shortcut to shutdown my computer ("C:\Windows\System32\shutdown.exe -s -t 10000") which i use for watching films before bed, just encase i sleep half way through but I was wondering if there was a way to make a similar shortcut but instead of making your computer shutdown in a few hours make it sleep in a few hours time.

Now I know how to make a sleep shortcut but that makes the computer sleep instantly, and putting "-t 10000" at the end of "C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState 0,1,0" doesnt work. Apparently their is a way to do it if you install some software but I don't want that.



Anyone know if its possible with just windows command shotcuts?
My System SpecsSystem Spec

17 Jun 2010   #2

Windows 7 Ultimate x64 SP1
Hampton VA
 
 

I have no ideal how to do this, wasn't even aware you could, but that's an interesting scenero.

Be interesting to see what solutions are posted.
My System SpecsSystem Spec
17 Jun 2010   #3

Windows 7 Ultimate X64 SP1
Cromer Norfolk UK
 
 

should work as you posted.... but you will need to disable Hybrid Sleep in Advanced Power options first
My System SpecsSystem Spec
.


18 Jun 2010   #4

Windows 7 Home (x64)
UK
 
 

so putting "C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState 0,1,0" into the shortcut does make it sleep, and putting -t 10000 doesnt make it timed it just does it instantly.

Unless im doing something wrong anyone got any ideas?
My System SpecsSystem Spec
18 Jun 2010   #5

Windows 7 Ultimate x64, Mint 9
In the Crust
 
 

Try:
rundll32.exe powrprof.dll,SetSuspendState -t 10000 0,1,0
or removing the 0,1,0 altogether

~Lordbob
My System SpecsSystem Spec
18 Jun 2010   #6

Windows 7 Home (x64)
UK
 
 

Quote   Quote: Originally Posted by Lordbob75 View Post
Try:
rundll32.exe powrprof.dll,SetSuspendState -t 10000 0,1,0
or removing the 0,1,0 altogether

~Lordbob

Nope that doesnt work either.
My System SpecsSystem Spec
18 Jun 2010   #7

XP / Win7 x64 Pro
 
 

What I'd do is make a .bat file with this line in it:

echo schtasks /CREATE /SC ONCE /TR "C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState 0,1,0" /SD <start-date> /ST <start-time>

Then, say it's tonight around 11pm and you want to put the system to sleep at 1am, then <start-date> would be 6/19/10 and <start-time> would be 01:00.

Just edit the file to reflect whatever times you want, save it, then right click and run as admin to execute it and set up the scheduled task.
My System SpecsSystem Spec
18 Jun 2010   #8

Windows 7 Home (x64)
UK
 
 

So that looks like it should work going to try it out in a bit but if anyone can find a way to do it without having to put them time in every time that would be awesome.
My System SpecsSystem Spec
18 Jun 2010   #9

XP / Win7 x64 Pro
 
 

If it is always the same time of day/night you want it to sleep, then you can leave the time the same and omit the date and never have to change it. The problem comes if you want to shut off at 1am (e.g. a different day than current). If you just put 01:00 and no date, it won't run b/c 1am has already passed on the current day.
My System SpecsSystem Spec
10 Sep 2010   #10

Win 7/Pro 64-bit
 
 
Sleep Mode ??

If this: C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState 0,1,0
get my Windows 7 machine to hibernate via a shortcut icon on my desktop,
which it does on both 32- and 64-bit machines, then what gets it to go into "sleep" mode?
My System SpecsSystem Spec
Reply

 Timed Shortcut for sleep/hibernation? problems?



Thread Tools



Similar help and support threads for: Timed Shortcut for sleep/hibernation?
Thread Forum
BSOD During Sleep/Hibernation BSOD Help and Support
Solved Sleep/Hibernation Problem Software
BSOD after sleep/hibernation BSOD Help and Support
Sleep & Hibernation modes Performance & Maintenance
Hibernation vs Sleep? Performance & Maintenance


All times are GMT -5. The time now is 07:47 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

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