Safely remove hardware option in right click context menu will enable you to remove any USB devices just from right click option.
We will create a batch file to bring the Safely remove hardware window, which otherwise you had to click on the small arrow in Windows 7 notification area, then right click the USB device, then click the Eject that drive option. 3 clicks were needed, more over, the Safely remove hardware window menu appears relatively slowly.
You can, however use the batch file as a standalone file in desktop instead of Right click menu in Windows 7, so that, double clicking it will bring the Safely remove hardware option window.
It will look like this (the icon can be changed as per your wish):
Creating the batch files to open Safely remove hardware option window
We need a batch file to run the Safely remove hardware option window.
Open Notepad. Write the following things for Safely remove hardware option:
start/min RUNDLL32 SHELL32.DLL,Control_RunDLL hotplug.dll
Save the file as removeUSB.bat for the example above and do not forget to change the file type from text to All files from drop down menu in Notepad before saving it. Obviously, you can save with any name you like, but you have to change the name in registry file in second step as well.
Double click to test the file. It should launch the Safely remove hardware option window.
After this step, you can use it as a standalone program:
- Just keep it on the desktop and double click to launch
- Move to any folder (other than desktop, like in C: drive;) and create a Shortcut to it bu right clicking over it and customize the icon by Right clicking on the Shortcut > Properties > Change icon. Just like we have done:
Those who have not still subscribed to our RSS feed or free daily Email updates (remember to check your junk / spam folder for confirmation email from Google for our subscription; lot of visitors forget to confirm it after subscription, we can see from account) might be astonished to see where from the iPad like wooden bookshelf came in Windows 7 Desktop. We wrote a tutorial how to get it before, you can read that as well.
The download package contains the above shortcut to Safely remove hardware with custom icon as well.
For those who want Safely remove hardware in right click context menu in Windows 7
For those who want Safely remove hardware in Windows 7 right click context menu; need too create a registry file. Please do not forget to place the batch file in C drive (both for the shortcut to Safely remove hardware and right click menu).
This will add the functionality to get a working Safely remove hardware option with custom icon from right click context menu. Open Notepad, copy paste the following and modify as per your need:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\Safely Remove Hardware]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\Safely Remove Hardware\command]
[HKEY_CLASSES_ROOT\Directory\Background\shell\Safely Remove Hardware]
[HKEY_CLASSES_ROOT\Directory\Background\shell\Safely Remove Hardware\command]
The blue text is the name you want to see in your right click menu. You name it as you like.
The orange text determines the position of the menu. You can use Top, Middle instead of Bottom.
The red text dictates the name and location of the batch file.
The green text is the location of the icon.
Save the file as Add Safely remove hardware.reg and do not forget to change the file type from text to All files from drop down menu in Notepad before saving it. Name does not matter here at all. You can save as you like.
Now, double click the reg file and accept the security warnings and you will see the Safely remove hardware option in right click context menu when clicked on a folder or any empty place inside folder or Windows 7 desktop.
Add a minus sign before the H starts after the third bracket; like [-HKEY_CLASSES.... to all where there is HKEY and save it (with some good name) as reg file and run it. It will break the association; so the Safely remove hardware option will disappear from right click context menu.
Obviously, you might delete the bat files manually too.
As usually all the required files are here for Safely remove hardware is for your download.
The rar file is password protected, type thecustomize windows.com as the password.