# XP line command for Hibernate?

**URL:** <https://boards.straightdope.com/t/xp-line-command-for-hibernate/400283>\
**Category:** Factual Questions\
**Created:** [April 16, 2007, 2:06am UTC](https://boards.straightdope.com/t/xp-line-command-for-hibernate/400283 "2007-04-16T02:06:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CookingWithGas](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cookingwithgas/32/485_2.png) [@CookingWithGas](https://boards.straightdope.com/u/CookingWithGas)\
**Post date:** [April 16, 2007, 2:06am UTC](https://boards.straightdope.com/t/xp-line-command-for-hibernate/400283/1 "2007-04-16T02:06:35Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Fear\_Itself](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/fear_itself/32/19637_2.png) [@Fear\_Itself](https://boards.straightdope.com/u/Fear_Itself)\
**Post date:** [April 16, 2007, 2:20am UTC](https://boards.straightdope.com/t/xp-line-command-for-hibernate/400283/2 "2007-04-16T02:20:31Z")

</div>

Try this:

[How To Put the System into hibernation or Standby from Run menu](http://support.microsoft.com/kb/555569/en-us)

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

---

<div class="post-metadata">

**Author:** ![groman](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@groman](https://boards.straightdope.com/u/groman)\
**Post date:** [April 16, 2007, 6:54am UTC](https://boards.straightdope.com/t/xp-line-command-for-hibernate/400283/3 "2007-04-16T06:54:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![engineer\_comp\_geek](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/engineer_comp_geek/32/504_2.png) [@engineer\_comp\_geek](https://boards.straightdope.com/u/engineer_comp_geek)\
**Post date:** [April 16, 2007, 2:45pm UTC](https://boards.straightdope.com/t/xp-line-command-for-hibernate/400283/4 "2007-04-16T14:45:39Z")

</div>

RUNDLL32.EXE PowrProf.dll,SetSuspendState
