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 Shortcut - Create

20 Nov 2014   #20
Brink

64-bit Windows 10 Pro
 
 

I'm afraid that's the only workaround that I know of to be able to have hibernate enabled and have a sleep shortcut.

If you like, you could also create a shutdown shortcut, and have it pinned next to the sleep shortcut.


My System SpecsSystem Spec
.
21 Nov 2014   #21
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Shawn - thx for reply ...

Quote   Quote: Originally Posted by MourningStar View Post
What I want is a pure standalone Sleep shortcut that I can pin to the taskbar, while leaving all else as is.
I stumbled across the attached late last night - it works and meets my requirements(quoted above) thus far. I was hoping if you or someone is able to dissect it, show us how it does what it does and relay any 'concerns' if warranted.

-thx


Attached Files
File Type: zip Sleep.zip (26.1 KB, 88 views)
My System SpecsSystem Spec
21 Nov 2014   #22
Brink

64-bit Windows 10 Pro
 
 

Thank you for sharing. It scanned clean with Windows Defender.
My System SpecsSystem Spec
21 Nov 2014   #23
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Brink View Post
Thank you for sharing. It scanned clean with Windows Defender.
Your welcome. I simply made a shortcut from the .exe via r-clik context menu's Create shortcut. So, will this qualify as a 'Method Three' for this topic?
My System SpecsSystem Spec
.

21 Nov 2014   #24
Brink

64-bit Windows 10 Pro
 
 

I'll give it some more time to make sure it's safe first since it is an .exe file from an unknown source.
My System SpecsSystem Spec
22 Nov 2014   #25
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Brink View Post
I'll give it some more time to make sure it's safe first since it is an .exe file from an unknown source.
fyi, the attachment contains a text file with author contact info.
My System SpecsSystem Spec
19 Feb 2015   #26
Cypherdude

Windows 7 Pro x64
 
 

Quote   Quote: Originally Posted by MourningStar View Post
Shawn - thx for reply ...
Quote   Quote: Originally Posted by MourningStar View Post
What I want is a pure standalone Sleep shortcut that I can pin to the taskbar, while leaving all else as is.
I stumbled across the attached late last night - it works and meets my requirements(quoted above) thus far. I was hoping if you or someone is able to dissect it, show us how it does what it does and relay any 'concerns' if warranted.
-thx
I uploaded your Sleep.ZIP file to virustotal.com. The resulting report has 2 hits which state it could be "W32/Symmi.AJ.gen!Eldorado" infected, whatever that is. I don't know if this is correct or not. virustotal.com is a free service which uses 57 different virus scanners. These could be just false positives. However, since the report is not clean, I cannot use this file. I just wanted to give anyone who is thinking about using this file a friendly warning.

I used the create shortcut method first using the command:
C:\Windows\System32\rundll32.exe Powrprof.dll,SetSuspendState

and then:
C:\Windows\System32\rundll32.exe Powrprof.dll,SetSuspendState Sleep

Because I have Hibernate enabled, using the shortcut put my computer into Hibernation mode instead of sleep. Unless you turn off Hibernation, you cannot use a simple shortcut to put your PC to sleep. I guess Microsoft just wanted to make things harder for us.
My System SpecsSystem Spec
19 Feb 2015   #27
Brink

64-bit Windows 10 Pro
 
 

It a false positive.

The file is nothing more than a shortcut that runs a .vbs file, and both are 100% safe and clean. Here's the contents of the .vbs file below.

Code:
Dim objShell 
Set objShell = CreateObject("Shell.Application") 
objShell.ShutdownWindows
set objShell = nothing
Set WshShell = CreateObject("WScript.Shell")

WshShell.SendKeys "{Enter}"
Set WshShell = Nothing

Yep, you must have hibernate disabled for the sleep shortcut to work as noted under Method Two.
My System SpecsSystem Spec
21 Nov 2016   #28
prukeyhi

98SE/XP/windows7 ultimate 32bit
 
 

thanks!
just used it to my new win7 pc
OPTION TWO
Manually Create the Shortcut


- works like charm
My System SpecsSystem Spec
21 Nov 2016   #29
Brink

64-bit Windows 10 Pro
 
 

You're most welcome prukeyhi. I'm glad it could help.
My System SpecsSystem Spec
Reply

 Sleep Shortcut - Create




Thread Tools




Similar help and support threads
Thread Forum
create sleep task, to force sleep over a program ?
Hello, I would like to know how to create a task in task scheduler , that'll force the computer into sleep over a running program. Basically, I have some software that runs in the background called 'WD anywhere backup' and when this software is running it prevents the computer from...
General Discussion
Custom 'Desktop (create shortcut)' Remove .fileextension - Shortcut
Hi guys n girls, I have for ever got sick and tired of right click -> open Send to Menu and creating a Desktop Shortcut for a file or app....then needing to go to the Desktop right click the newly made shortcut and then removing the trailing file extension, dash and words shortcut in brackets....
Customization
Create shortcut
How do I create a shortcut to my desktop, so that the Windows explorer will open up the selected library in the 'my documents' section? Of course there is no "create shortcut" button when I right click on the library.
General Discussion
How to create Shortcut 'SED' instead of 'SED.exe - Shortcut'?
I often have to create Shortcuts to executable code. I used https://www.sevenforums.com/tutorials/804-shortcut-extension-remove-restore.html to getSED.exe instead of the Win7 default SED.exe - Shortcutas name of the newly created shortcut. But I would prefer to have just 'SED'. Any way to do...
General Discussion
Create a System Image Shortcut - Create
How to Create a "Create a System Image" Shortcut in Windows 7 This will show you how to create a Create a System Image shortcut in Windows 7. To be able to use this shortcut, you must be logged in as an administrator. EXAMPLE: Create a System Image
Tutorials
Sleep problem; Goes into deeper sleep w/shortcut
I have a notebook connected to a monitor with external mouse/keyboard. When I put the notebook to sleep via the Start menu or the keyboard, it is able to wake out of it by moving the mouse around or pressing a key. However, when I create a shortcut to it for Windows Task Scheduler to enter...
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 04:02.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App