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
 
 

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
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 shortcut
how to create a shortcut for disable battery charging Operation
General Discussion
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


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 02:12.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App