Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Right Click Context Menu - Eject USB Device?

17 Apr 2010   #1
not so gray matter

W7 Ult. x64 | OS X
 
 
Right Click Context Menu - Eject USB Device?

EDITED: Original Question: How can I add the eject/safely remove choice back into the explorer context menu?

New Question:
Ok well now I want to ask a different question. Does anyone know how to properly edit the registry to add such a key. When I'm in the devices & printers window the option is available via right click. Therefore, I searched for eject in the registry and found an entry in the shell section of DeviceDisplayObject which is the controller (I hope) for that Devices & Printers window. I'm assuming this is the correct key.

It's located at:
HKEY_CLASSES_ROOT\DeviceDisplayObject\AllItems\Shell\Windows.Eject

Now I've attempted to copy that and move it to places such as the global context menu area (ROOT\*\Shell\) and (ROOT\Drive\shell\). However, no matter where I add it it won't work. Maybe something in the shellex line below it is required as well, I don't know. Maybe I'm just cloning it wrong.

If anyone has experience give it a try.

NOTE: I don't want to open the menu for ejecting a disk, I want the right click item to actually eject the disk. Also, I know how to create a shortcut to open the ejection menu.


My System SpecsSystem Spec
.
17 Apr 2010   #2
Night Hawk

W7 Ultimate x64/W10 Pro x64 dual boot main build-remote pc W10 Pro x64 Insider Preview/W7 Pro x64
 
 

I used to unplug an external drive in Vista without the need to click on the safely remove icon. In 7 the prompting for missing device will be seen when not doing that for a flash drive however.

With or without clicking on the green icon in the system tray the drive letter to certain flash drives will still be maintained. If the brand like San Disk sees an automatic appearance when first plugged in with a small screen with the brand name on it then you click the safely remove option to stop the prompting.
My System SpecsSystem Spec
17 Apr 2010   #3
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

The way I understood it: Eject was for the card reader because on some system you cut the reader power off if you used "safely remove". For USB sticks and disks you were supposed to use "safely remove" which indeed was part of the Vista right click context menu. That would make sure that all data buffers were written to the device.
But you are right, in Win7 you have "Eject" for the cards, but no "Safely Remove" for the others. For that you have to go to the icon in the tray.
My System SpecsSystem Spec
.

17 Apr 2010   #4
not so gray matter

W7 Ult. x64 | OS X
 
 

Whether it's called "Eject" or "Safely Remove", it'd be nice if I could add it to my context menu.

I want it there because once a HDD is ejected, it'll enter low power mode, then if I want to reconnect it, I can just fiddle with the usb plug. Granted I could always use the safely remove systray icon, but it's not as convenient for me.

BTW, My external HDDs don't enter low power mode when connected, or if they do they get interuppted and spin back up, it's much more reliable when the OS thinks they're disconnected.
My System SpecsSystem Spec
17 Apr 2010   #5
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Quote   Quote: Originally Posted by Night Hawk View Post
I used to unplug an external drive in Vista without the need to click on the safely remove icon. In 7 the prompting for missing device will be seen when not doing that for a flash drive however.

With or without clicking on the green icon in the system tray the drive letter to certain flash drives will still be maintained. If the brand like San Disk sees an automatic appearance when first plugged in with a small screen with the brand name on it then you click the safely remove option to stop the prompting.
Your approach is only halfway safe if you did not enable write caching (which I guess most people would do because of the performance gain). With write caching on, you could lose data.
My System SpecsSystem Spec
17 Apr 2010   #6
Night Hawk

W7 Ultimate x64/W10 Pro x64 dual boot main build-remote pc W10 Pro x64 Insider Preview/W7 Pro x64
 
 

At the time I simply plugged the drive in and upnplugged when first getting it to solve the XP detection problem while it still had the factory Fat volume on. That was a few times originally subsequently leaving it plugged in once reformatted until 7 came along!

Now it's no longer in the case but waiting to go back into the external casing or find another home. But write caching wasn't involved there. With the flash drives now being used the sys tray icon is simply clicked for the eject option.

The little green icon is still the same in 7 and should be used as a regualr habit to solve all problems with the external drives. Without any drive or device plugged in however the icon is not seen until you plug one in which I did to see that reappear.
My System SpecsSystem Spec
18 Apr 2010   #7
not so gray matter

W7 Ult. x64 | OS X
 
 

One of my problems with the safely eject systray icon is that when I have mutiple devices connected and eject one, I have to actually power the device down in order to eject another. In other words, I can't eject to low power mode and then fiddle with the connection to re-engage as I usually do. It's too bad that their isn't an application (atleast that I know of) that handles devices like Disk Utility on the MAC.

For those who don't know, disk utility allows you to mount and unmount partitions of external hard drives without affecting partitions on the same disk. OS X automatically mounts all partitions on a disk when it's initially connected, but with disk utility you can unmount 1 partition while keeping the other mounted and/or unmount all partitions and then mount them again 30 minutes later without having to cycle the power in the device.
My System SpecsSystem Spec
18 Apr 2010   #8
not so gray matter

W7 Ult. x64 | OS X
 
 

Ok well now I want to ask a different question. Does anyone know how to properly edit the registry to add such a key. When I'm in the devices & printers window the option is available via right click. Therefore, I searched for eject in the registry and found an entry in the shell section of Device... I'm assuming this is the correct key.

It's located at:
HKEY_CLASSES_ROOT\DeviceDisplayObject\AllItems\Shell\Windows.Eject

Now I've attempted to clone that and move it to places such as the global context menu area (ROOT\*\Shell\) and (ROOT\Drive\shell\. However, no matter where I add it it won't work. Maybe something in the shellex line below it is required as well, I don't know. Maybe I'm just cloning it wrong.

If anyone has experience give it a try.
My System SpecsSystem Spec
18 Apr 2010   #9
Bill2

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

notsograymatter,

If you are looking for this thing for convenience, you can create a shortcut to eject the usb using USB Disk Ejector tool.

Create a Shortcut to Immediately Eject a Specific USB Drive in Windows 7
My System SpecsSystem Spec
18 Apr 2010   #10
not so gray matter

W7 Ult. x64 | OS X
 
 

Quote   Quote: Originally Posted by Bill2 View Post
notsograymatter,

If you are looking for this thing for convenience, you can create a shortcut to eject the usb using USB Disk Ejector tool.

Create a Shortcut to Immediately Eject a Specific USB Drive in Windows 7
Yeah I know how to do that, I want the Eject/Safely remove item in the context menu because it's item specific. I can right click > eject a specific drive. The shortcut isn't any better than the stock systray icon

BTW: You don't need to download an external program to do that, you can just use the line:
C:\Windows\System32\rundll32.exe shell32.dll,Control_RunDLL hotplug.dll
My System SpecsSystem Spec
Reply

 Right Click Context Menu - Eject USB Device?




Thread Tools




Similar help and support threads
Thread Forum
Eject and Close CD/DVD Tray - Add to Desktop Context Menu
How to Add "Eject/Close CD/DVD Tray" to the Context Menu in Windows This tutorial will show you how to add Eject/Close CD/DVD Tray to the folder background, drive, and desktop context menu, and file/folder context menu in Vista, Windows 7, and Windows 8. When used by a user, it will toggle...
Tutorials
Left click brings up right click context menu on desktop
For the last few weeks whenever I left click on the desktop it brings the right click menu. This dosen't happen in the browser (firefox), but only in the windows desktop and start menu. However i the browser if I am on a web player like youtube, the portion that displays the video fails to display...
General Discussion
Context Menu - Right Click vs Shift Right Click
How to Expand the Windows 7 Context Menu for More Options This will show you how to expand the Windows 7 context menu to see more available options to select from for a file, folder, desktop, Windows Explorer root window, Windows Explorer window, and the Send To menu. Here's How:
Tutorials
Remove local (boot) disk from device eject menu?
I upgraded my sister's computer from Vista to 7, and now her boot disk shows up as an ejectable drive. how do I fix this, as I'm pretty sure Windows will become unstable if she accidentally ejects the boot drive
General Discussion
Unable to remove MagicISO context menu from right click menu in Win 7
Hey it's been a while since I've last been here, I really enjoy this Win 7 community hope everyone is doing well. Anyway let me cut to the chase, basically I want to be able to remove the MagicISO context menu from the right click context menu in Windows 7. See pics to understand what I'm...
Customization
Safely remove/eject in context menu for USB HDD?
One of the few things I liked about Vista was that you didn't have to go to a little tray icon to click to get your drives back, you could just right-click and "safely remove" was in the context menu. It's there for my USB sticks, or at least eject which will fulfil the same need. I like my icons...
Customization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 22:25.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App