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


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
Published by Brink
08 Nov 2011
Published by

How to Add "Eject/Close CD/DVD Tray" to the Context Menu in Windows

information   Information
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 the default CD/DVD drive's tray to eject (open) or close.

Note   Note
You must be logged in as an administrator to be able to add this to the desktop context menu, but all users on the computer will be able to use it after it has been added.

If you need this to work for a specific CD/DVD drive letter instead, then please post and let me know. I'll be happy to modify the .bat and .reg files below for the drive letter you wanted instead.


EXAMPLE: "Eject/Close CD/DVD Tray" added to Desktop Context Menu
Name:  Example.jpg
Views: 28050
Size:  30.6 KB



Here's How:
1. Do either step 2 or 3 below for what you would like to do.


2. To Add "Eject/Close CD/DVD Tray" to Context Menu
A) Download the 32-bit or 64-bit version of NirCmd that is the same as your 32-bit or 64-bit Windows at the bottom of the website below, and save the ZIP file to your desktop.
NirCmd - Windows command line tool
B) Open the downloaded ZIP file, and extract (drag and drop) the nircmd.exe file to your desktop, and unblock the file.

C) Click/tap on the Download button below to download the .bat file below, and save the .bat to your desktop.
Eject-Close_CD-DVD.bat

download
D) Unblock the .bat file.

E) Move both the unblocked nircmd.exe file and unblocked Eject-Close_CD-DVD.bat file into your C:\Windows\System32 folder, and approve (Continue-Yes).
NOTE: The bat file must be named this exactly. Rename if needed.

F) Click on the Download button below to download the .reg file below, and save the .reg file to your desktop.
Add_Eject-Close_CD-DVD_Tray_to_Context_Menu.reg

download
G) Double click/tap on the REG file to merge it, then click/tap on Run, Yes (UAC-Windows 7/8) or Continue (UAC-Vista), Yes, and OK when prompted to approve the merge.
3. To Remove "Eject/Close CD/DVD Tray" from Context Menu
A) Click/tap on the Download button below to download the file below.
Remove_Eject-Close_CD-DVD_Tray_from_Context_Menu.reg

download
B) In Windows Explorer, navigate to C:\Windows\System32, and delete the nircmd.exe and Eject-Close_CD-DVD.bat files.
That's it,
Shawn
14 Mar 2012   #1
dohouch

Win7 Home Premium 64 bit
 
 
Love It

Getting to the "Open/Close" tray button is an awkward manoeuvre in my set up, but dropping in the disc is easy enough, so this is great, thanks for the work.


My System SpecsSystem Spec
14 Mar 2012   #2
Brink
Microsoft MVP

64-bit Windows 10 Pro build 11082
 
 

You're welcome dohouch, and welcome to Seven Forums.
My System SpecsSystem Spec
07 May 2012   #3
chriswchrisw

Win 7 Home Prem 64
 
 

Brink...you've helped me before, so I had faith to try this. This is about the 4th "close tray" app I've tried, none work, incl this one. Using Win7/64 Home Prem, 2 LG CD/DVD reader/burners.

Everything seemed to go smoothly. D/L Nircmd-64.zip, came with 3 files, I pulled out nircmd.exe. Put it and .bat (both unlocked) in Sys32. Ran the REG file, did a restart.

But nothing added to context menu. Zip! I'm beginning to suspect the LGs, that's the only common thread to the all these "close tray" apps that don't work.

Any ideas?
My System SpecsSystem Spec
.


07 May 2012   #4
Brink
Microsoft MVP

64-bit Windows 10 Pro build 11082
 
 

Hello Chris,

The REG file is what adds Eject/Close CD/DVD Tray to the context menu of the desktop. When you right click on the desktop and click on Eject/Close CD/DVD Tray, it runs the BAT file that has a command that runs using the nircmd.exe file.

What happens when you merge the REG file? Are you getting prompted to click on Run, Yes (UAC-Windows 7), Yes, and OK after merging it? You might also see if right clicking on the REG file and clicking on Merge will work to see if there may be a issue with your reg file associations.
My System SpecsSystem Spec
07 May 2012   #5
chriswchrisw

Win 7 Home Prem 64
 
 

Brink......whoops, my bad. The entry is on the DESKTOP context menu, not the drive's context menu! So it works.

I have two CD/DVD trays. The entry appears to be controlling my D: drive correctly. Drive E: is apparently not being controlled at all, but I can live with that. Thnx.
My System SpecsSystem Spec
07 May 2012   #6
Brink
Microsoft MVP

64-bit Windows 10 Pro build 11082
 
 

Ok. That's great news then. Yeah, it will only open/close the default CD/DVD drive.
My System SpecsSystem Spec
17 Mar 2013   #7
madmax2

Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

can u make it so that the context menu shows

close tray directly underneath eject

It makes it easier to find eject and close since they are close to one another
My System SpecsSystem Spec
17 Mar 2013   #8
Brink
Microsoft MVP

64-bit Windows 10 Pro build 11082
 
 

Hello madmax,

The context menu item in this tutorial is basically just a toggle switch to open/close the default CD/DVD drive.
My System SpecsSystem Spec
22 Mar 2013   #9
madmax2

Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Brink View Post
Hello madmax,

The context menu item in this tutorial is basically just a toggle switch to open/close the default CD/DVD drive.
Can you post an image of how the context menu should look like in the windows 7
My System SpecsSystem Spec
Comment

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




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
Add RUN to desktop context menu?
hello everyone! is there a way to add RUN to desktop context menu?
Customization
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...
Tutorials
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
Desktop Context Menu
Can anyone help me w/a little customization? In the attached picture, I want to move the StickyNote selection down into the New heading & also remove the (zipped) wording from New>Compressed (zipped) Folder. Anyone have any solutions?
Customization
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 shmnview-x64.zip. 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 12:27.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App