How to create and use a button on the shortcut panel to make Windows XP Hibernate

Let’s start by creating a small batch script in an editor. I’ll use Notepad but any editor of your choice can be used.

1. Click on the windows “Start” button

2. Point to Program => Accessories => Notepad and left click on it.

3. Enter the following in the new file:

@echo off
%windir%\system32\rundll32.exe PowrProf.dll,SetSuspendState
:eof
exit

4. Click on file on the top left of the editor and save the file as “hibernate.bat” on the desktop.

5. Create a new folder under “My Documents” and name it “MyScripts”

6. Copy the script “hibernat.bat” created ealier to “C:\\Documents and Settings\%username%\My Documents\MyScripts\”

Note: %username% = your username under which you’re login

7. Make a shortcut of the hibernate.bat file in the same folder MyScripts

8. Change the Symbol of the shortcut to whatever you want. But for the purpose of this tutorial, I’ll use the shutdown symbol.

9. While press-holding the “Ctrl” button, drag the shortcut from MyScripts folder to the shortcut panel as shown on the screenshot below.

Whenever you want to hibernate your “Windows XP”, just click the newly created button.

That’s it!


Posted in Windows, Windows XP and tagged , , , by with comments disabled.