XP line command for Hibernate?

Does XP have any kind of line command or .exe that will cause the machine to hibernate?

I just got a Microsoft Natural keyboard which has lots of bells and whistles including programmable function buttions. I would like to be able to hibernate my desktop with keystrokes, just like I can do with my laptop. (I have already programmed it to hibernate when I press the power button but I can’t be bothered to reach down.) So is there something I can bind a button to that will hibernate it?

Try this:

How To Put the System into hibernation or Standby from Run menu

It details instructions on initiating hibernation from the Run window, so you should be able to translate that into a keyboard macro.

I do it the following way (although not a direct answer to your question):

  1. [Windows Key] - D (Shows desktop)
  2. [Alt] - F4 (Brings up the shutdown menu)
  3. [Shift] - H (Hibernates)

However, I think most people would consider that clumsy.

RUNDLL32.EXE PowrProf.dll,SetSuspendState