Vista : Add shortcut to ‘Safely Remove Hardware’ Dialog to Right Click menu

This recipe will explain how to easily add a “Eject Drive” or “Safely Remove Hardware” menu option to your right-click menu in Vista.

Very handy if you work with USB Drives a lot on a daily basis since this will let you just right-click on your desktop (instead of finding the icon in your taskbar) and then be able to open the “Safely Remove Hardware” screen to eject the drive properly (and yes, i have corrupted a few USB drives by not safely removing them).

preview

This recipe will require a User account w/admin rights.

DISCLAIMER! BACKUP Your registry prior to making any registry changes! Registry changes can be fatal to your operating system if you do not know what your doing. You’ve been warned :)

1. Open up Registry Editor by hold the Win Key + R to bring up the Run window and then type: regedit

2. This will open the Registry Editor program, browse to this location by expanding the folders in regedit:
HKEY_CLASSES_ROOT\Directory\Background\shell\

3. Right-click on the shell folder and choose New > Key and name it as you want it to show in your right click / context menu (in my example i am using Eject Drives)

screenshot1

4. Now right-click on the new Key we just created (ie in my example, Eject Drives) and again choose New > Key.  We will name this key to be command

5. Finally, we will want to click on the new command key we just created.  On the right pane you will see Name (Default) and Type REG_SZ. Double-click on this String and for the Value change it to:

RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll
and click OK.

screenshot3

6. Hopefully once you right click on your desktop you will see the new Eject Drives option and once you click on it, it should open your “Safely Remove Hardware” screen.

This recipe can be applied to any application you want to add to your right-click Context menu. :)

You would just need to put the full path of the application you want to launch in Step 5.

 

About Jimmy Selix

Jimmy Selix is an early adopter that loves to be one of the first on the block to have the latest and greatest in technology and gadgets. Another love of his is being able to share his knowledge to others seeking it. Feel free to drop any comments or questions that you may have.
View more articles by Jimmy Selix

The Conversation

Follow the reactions below and share your own thoughts.

3 Responses to “Vista : Add shortcut to ‘Safely Remove Hardware’ Dialog to Right Click menu”

  1. January 28, 2009 at 8:26 am, Adil said:

    Can someone put up a list of full paths of commands/applications or where to find them.
    Thank you for this usefull guide

    Reply

  2. February 02, 2009 at 5:59 am, jimmyselix said:

    i’ll get a list of common commands up shortly! :) check the front page or back here, i’ll link them.

    Reply

  3. February 04, 2009 at 4:08 pm, Shelia said:

    I am constantly doing this…I have lost three drives myself…I LOVE IT!!! Thank you!

    Reply

Leave a Reply