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

24 Nov 2014   #20
Brink

64-bit Windows 10 Pro
 
 

You could do the same for them as well. You'll just need to substitute the bottom command for the .bat file below for the one you want instead.

The message displayed by the echo command can be anything you like to help know what it it's for, etc...

Code:
@echo off
echo Your message here
timeout /t 30 /nobreak
shutdown -h -f
I'm not sure how to have the abort command work using this method though, but luckily it gives you the option to abort during the prompt.


My System SpecsSystem Spec
.
24 Nov 2014   #21
MourningStar

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

Quote   Quote: Originally Posted by Brink View Post
The message displayed by the echo command can be anything you like to help know what it it's for, etc...
I get a double message display per attached. How to have single? I also don't need to see the path/timeout ...


Attached Images
Hibernate Shortcut - Create-hib.png 
My System SpecsSystem Spec
24 Nov 2014   #22
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
 
 

It needs a @echo off as the first statement.

Code:
@echo off
echo HIBERNATE
timeout /t 30 /nobreak
shutdown -h -f
My System SpecsSystem Spec
24 Nov 2014   #23
MourningStar

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

Quote   Quote: Originally Posted by DavidE View Post
It needs a @echo off as the first statement.
Yep! - that's what it needed, thank you DavidE.

Shawn, thank you for all your help. I think I will keep my 'abort' button around for a while. However, that countdown cmd prompt is really drawing me in.

oh, and thx to Lordbob75 for this great tutorial,

-take care all!
My System SpecsSystem Spec
.

28 Nov 2014   #24
MourningStar

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

Quote   Quote: Originally Posted by Brink View Post
You could do the same for them as well. You'll just need to substitute the bottom command for the .bat file below for the one you want instead.

The message displayed by the echo command can be anything you like to help know what it it's for, etc...

Code:
@echo off
echo Your message here
timeout /t 30 /nobreak
shutdown -h -f
...
I'M BACK - heh, heh,

I decided to go the .bat file/shortcut route for Restart and Shutdown and I have followed your examples to the letter. HOWEVER - after the command window 30 second countdown is complete it closes and a new window/pop-up appears (attached ) and a new 30 second countdown begins. How do I stop the 2nd pop-up? -thx

my bat files :

@echo off
echo RESTART
timeout /t 30 /nobreak
shutdown -r -f

@echo off
echo SHUTDOWN
timeout /t 30 /nobreak
shutdown -s -f


Attached Images
Hibernate Shortcut - Create-sd1-1.png 
My System SpecsSystem Spec
28 Nov 2014   #25
Brink

64-bit Windows 10 Pro
 
 

You can do that by changing the last command to do the action immediately after the timeout. :)

Code:
@echo off
echo RESTART
timeout /t 30 /nobreak
shutdown -r -f -t 00

Code:
@echo off
echo SHUTDOWN
timeout /t 30 /nobreak
shutdown -s -f -t 00
My System SpecsSystem Spec
28 Nov 2014   #26
MourningStar

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

^
YES! - thx for the fix Shawn, adios ...
My System SpecsSystem Spec
28 Nov 2014   #27
Brink

64-bit Windows 10 Pro
 
 

You're most welcome. :)
My System SpecsSystem Spec
Reply

 Hibernate Shortcut - Create




Thread Tools




Similar help and support threads
Thread Forum
Shortcut to create shortcut
Is it possible to press any combination of keys on a keyboard to run shortcut creation wizard? If it is possible please suggest me what to do. I have revealed "Ctrl + Shift + N" to create folder so I am looking how to quickly run shortcut creation wizard.
General Discussion
Unable to create shortcuts in startup folder "cannot create shortcut"
I am unable to create a shortcut in the startup folder on my Dell Optiplex 780. Every time I try, I get the following error, "Windows cannot create a shortcut here. Do you want to place the shortcut on the desktop instead?" No I do not want it on the desktop, I want the program to start with...
General Discussion
Can I create and use a Hibernate partition ?
From what I've read and know, I always believed the Windows Hibernate file must be on the partition. In this thread it seems there can be a "Hibernate Partition" (for a Dell OEM PC): https://www.sevenforums.com/installation-setup/355437-have-too-many-partitions-dual-boot-windows-10-a.html Can...
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 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


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 06:30.
Twitter Facebook Google+