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: Eject and Close CD/DVD Tray - Add to Desktop Context Menu

07 Aug 2014   #40

64-bit Windows 10 Pro

Great news Chuck.

I'm not aware of any programs that'll do this automatically for you.

My System SpecsSystem Spec
26 Aug 2014   #41

Windows 7 ultimate x64

I'm getting " is not a valid win32 application"
Is this because my CD-DVD drive letter is "w" ???
Pls help me
My System SpecsSystem Spec
26 Aug 2014   #42

64-bit Windows 10 Pro

Hello Sesha, and welcome to Seven Forums.

The drive letter wouldn't matter. The context menu uses the default CD/DVD drive.

It sounds like you may not have download the 64-bit version of the nircmd.exe file in step 2A.

Double check through the steps to make sure that you didn't miss anything by mistake. :)
My System SpecsSystem Spec
27 Aug 2014   #43

Windows 7 ultimate x64

I "think" i'v followd the procedure and YES, ussed nircmd.exe x64. This time no warning, tray DOESNOT open, but notice
kind of command prompt flasing in the background??
Thanks and much appreciate yr kind help
best rgds
My System SpecsSystem Spec

27 Aug 2014   #44

64-bit Windows 10 Pro

If your Windows is not an English version, then their could be a translation issue with the commands and registry entries from this.

If your experienced, you could edit the .bat and .reg file to compare with your Windows to make sure that the paths are the same language or not.
My System SpecsSystem Spec
09 Aug 2015   #45

Windows 7 x64

great job. it works in windows 7 and windows 10 also
My System SpecsSystem Spec
09 Aug 2015   #46

64-bit Windows 10 Pro

Thank you for confirming BC66. :)
My System SpecsSystem Spec
09 Jan 2016   #47

Win 2k, Win XP pro, Win7 ult. 32 AND 64 bit, Win8.1 Pro 64 bit

The way you described it is not working.

Firstly: One needs to tell the explicit path under "command"
Secondly: It is not very clever to make it for the desktop right click dialog only.
You cannot expect anybody to deliberately change to the desktop each time
the command is needed. This is highly annoying.
Instead it should be working on rightclick inside the file explorer at least,
if not from about everywhere no matter where you just are (global command)
Thirdly: It works only for ONE single drive that a user can specifically name, if necessary,
if it isn't the standard D:

So, your idea isn't bad, however, the solution unfortunately isn't very well.

For my needs, I now get along after I changed the registry entry as follows:

[HKEY_CLASSES_ROOT\*\Shell\Eject/Close CD/DVD Tray]
[HKEY_CLASSES_ROOT\*\Shell\Eject/Close CD/DVD Tray\command]
"C:\Windows\System32\Eject-Close_CD-DVD.bat" "%1"

[HKEY_CLASSES_ROOT\Directory\Shell\Eject/Close CD/DVD Tray]
[HKEY_CLASSES_ROOT\Directory\Shell\Eject/Close CD/DVD Tray\command]
"C:\Windows\System32\Eject-Close_CD-DVD.bat" "%1"

sent by jhs
My System SpecsSystem Spec
10 Jan 2016   #48

64-bit Windows 10 Pro

Hello jhs, and welcome to Seven Forums. :)

I've updated the .reg files in the tutorial to include these locations as well now to help.
My System SpecsSystem Spec
12 Jan 2016   #49

Win 2000 Pro x32 SP4 / Win 7 Home Premium x64

Ok, that's kewl. BUT, does it work for multi-drives AND can you select the drive in the right-click context menu with the "New" registry update? I like the idea of having it in the "global" context menu, awesome idea.
My System SpecsSystem Spec

 Eject and Close CD/DVD Tray - Add to Desktop Context Menu

Thread Tools

Similar help and support threads
Thread Forum
cmd in Desktop Context Menu
Had a power outage last night and had to start the computer. Right clicked the Desktop a bit ago and now it's populated with the "cmd" entry (pic). When clicked the following appears: Any...
General Discussion
Next Desktop Background - Add or Remove from Desktop Context Menu
Add or Remove "Next desktop background" from Desktop Context Menu in Windows 7 and Windows 8 A desktop slideshow is a slideshow of wallpaper images (pictures) of your choice on your desktop. When a desktop slideshow is being used in Windows 7 or Windows 8, Windows automatically adds Next...
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...
Desktop Context Menu
The context menu ( right click desktop) has lost it. EX: click new .txt doc and nothing comes up. Some of the others do not work (most). I looked at a tutorial for it and there was some reg files to restore change etc.. Also seen a link for Before I bork everything, is the...
General Discussion
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...
Hardware & Devices

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 23:34.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App