Monday 16 February 2009

Hibernate Windows XP with one press on a button

I was looking around to use one of my configurable keyboard key to easily hibernate my Windows XP session. After searching a while, I found the way how to do it.
I created a batch file with the following statement in it:

%windir%\system32\rundll32.exe powrprof.dll,SetSuspendState Hibernate

I just configured my keyboard (logitech one with four customizable keys at the top) to run this batch file.
So now, when I press the customizable key '4', my system will hybernate immediately. I love it!

3 comments:

Anonymous said...

I Agree! Hibernate your Windows and start up your Mac :)!

Me said...
This comment has been removed by the author.
Rob said...

Well well Frank, have a safe sleep...

(... and startup your Windows (again) :P )