Monday, April 19, 2010
Do you want to hibernate windows from the command prompt?
rundll32.exe powrprof.dll,SetSuspendState
This command will do the job for you.
To even further simplify this you can put those commands in a batch file. So instead of typing the whole command each time you can use shorter commands.
Make sure the batch is put in the %systemroot%\system32 directory so the command will execute from anywhere.
Here is a example. I created hiber.bat in %systemroot%\system32, within that bat file is
cls
echo System will Hibernate!
pause
rundll32.exe powrprof.dll,SetSuspendState
exit
The pause is used so that you can use ctrl+c to break before the hibernate command command is executed. This can be handy when you switch your minds faster than the whirlwind!
Now anytime just type hiber in the command prompt to hibernate your system!
rundll32.exe powrprof.dll,SetSuspendState
This command will do the job for you.
To even further simplify this you can put those commands in a batch file. So instead of typing the whole command each time you can use shorter commands.
Make sure the batch is put in the %systemroot%\system32 directory so the command will execute from anywhere.
Here is a example. I created hiber.bat in %systemroot%\system32, within that bat file is
cls
echo System will Hibernate!
pause
rundll32.exe powrprof.dll,SetSuspendState
exit
The pause is used so that you can use ctrl+c to break before the hibernate command command is executed. This can be handy when you switch your minds faster than the whirlwind!
Now anytime just type hiber in the command prompt to hibernate your system!
Labels: Windows corner...
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment