Creating a shortcut and hotkey to Windows’ "Safely Remove Hardware" dialog

Jun 13, 2008

In a previous post I talked about using Windows’ “Safely Remove Hardware” dialog to avoid losing data from USB drives. Having done some more research, I’ve found a way to create a shortcut to this dialog.
 
The shortcut is simple to create, and uses a RunDll32.exe command that looks like this: 

RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll

 

  • To create it, right-click on your desktop and select New, then Shortcut.
  • In the Create Shortcut dialog, paste the above command, and click “Next”.
  • Name it what you will, for example “Ejecting USB Drives”.
  • Click “Complete”.

 
If you want to, you could also assign a hotkey:
 

  • Right-click the newly made shortcut and click Properties
  • In Properties, select the “Hotkey” field, and enter the hotkey you’d like, e.g. Win+S
  • Click Use, then OK
Posted by razumny | Categories: Hack | Tagged: , , , , , |

Share with others

No Responses so far | Have Your Say!

All comments are moderated. I usually publish a comment within twelve hours of its posting. Other than that, I have a few simple rules; feel free to disagree with me, but stay on topic, and behave yourself. Comments containing insults, libel etc. will not be published. Your right to free speech does not mean I must publish what you write.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>