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: Timed Shortcut for sleep/hibernation?

17 Jun 2010   #1
SoulPursuer

Windows 7 Home (x64)
 
 
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
sygnus21

Windows 8.1 Pro
 
 

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
severedsolo

Windows 7 Ultimate X64 SP1
 
 

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
SoulPursuer

Windows 7 Home (x64)
 
 

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
Lordbob75

Windows 7 Ultimate x64, Mint 9
 
 

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
SoulPursuer

Windows 7 Home (x64)
 
 

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
FliGi7

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
SoulPursuer

Windows 7 Home (x64)
 
 

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
FliGi7

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
websquad

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?




Thread Tools





Similar help and support threads
Thread Forum
Hibernation or sleep?
I forgot to turn off the hibernation / sleep in windows 7 and forgot to safely remove the external 3.5 desktop hard drives from it. I think my external drives need safely remove The computer had gone into sleep and then it powered up suddenly when I pressed a key on keyboard will this cause any...
General Discussion
Sleep/Hibernation Problem
I have installed a new version of win 7 and my PC is not sleeping/hibernating more than a few seconds before waking up again. I have to change the BIOS settings for the keyboard & mouse, I have unplugged them immediately after putting my pc to sleep and it still wakes up. What can I do?
Software
Sleep and hibernation question
would ether prevent a thunder storm from screwing up my mobo R is powering off the pc better then both to prevent it R unplugging it
General Discussion
BSOD after sleep/hibernation
My computer is running Windows Ultimate 64 bit edition. When awaking form sleep mode, I get a BSOD. As instructed, I am attaching the compressed file. Any and all help will be appreciated!
BSOD Help and Support
Sleep & Hibernation modes
Ever since first installing Windows 7 I have experienced problems with both the Sleep and Hibernation modes. Having configured the the settings for these uncder Control Panel/Power options/Advanced settings it eems that these two modes then operate at the time intervals which have been configured....
Performance & Maintenance
Hibernation vs Sleep?
well i have a laptop (feel free to look at the specs) and i usually do hibernation to let my laptop rest to go do something and then i also see "sleep" mode right above the hibernation...what is the difference and which is better that loads up to my desktop faster and back to action? (meaning i be...
Performance & Maintenance

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 09:18.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App