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

24 Dec 2013   #30
Brink

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by IownAmoneyPit View Post
Thanks for this Brink & have a merry Christmas.
You're welcome mate. I hope you and your family have a Merry Christmas as well.


My System SpecsSystem Spec
.
13 Apr 2014   #31
subpatro

Win 7/64 Pro
 
 
Can I modify eject/close CD/DVD?

Hi,
Really like the entry in Desktop Context Menu but the toggle doesn't close my HP laptop which seems to have no close mechanism. You still have to push the eject/close entry again after manually closing to keep it in sequence. Open works great and manual close is easy. How do I modify it (have already installed it) to make it open only? This is an ideal mod for laptops which, as you know, have that tiny almost-hidden open button.
Thanks.
My System SpecsSystem Spec
13 Apr 2014   #32
Brink

64-bit Windows 10 Pro
 
 

Hello Subpatro, and welcome to Seven Forums.

Unfortunately, a lot of laptop DVD drives have to be manually pushed closed since they do not have a motor to pull it closed. In this case, the context menu would not be able to close it.
My System SpecsSystem Spec
17 Jul 2014   #33
jarp53

 
 
down load did not work

Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
Gigabyte Technology Co., Ltd. Z68X-UD3H-B3
Award Modular BIOS v6.00PG
8.00 GB
Microsoft Windows 8.1 64-bit 9600 Multiprocessor Free
letter for my dvd drive " D "
My System SpecsSystem Spec
.

17 Jul 2014   #34
Brink

64-bit Windows 10 Pro
 
 

Hello Jarp,

Did you download the 64-bit NirCMD, and put it in your System32 folder?

Double check to make sure that you didn't miss any of the steps by mistake.

Is this a tray or slot DVD drive, and is it for a laptop or desktop?
My System SpecsSystem Spec
05 Aug 2014   #35
Chuckamundo

Win 2000 Pro x32 SP4 / Win 7 Home Premium x64
 
 

Hi Brink.,
A) If you "change" the drive letter in the script file, does it "show" on the right-click desktop context menu? B) If you have dual drives you want this right-click to work for, can you "specify" the drive letter for each drive, and have 2 of these commands on the right-click desktop context menu @ the same time? Drives are E: & F: and powered open / close. C) Wonder if there's a script / program to actually add these commands to the right-click drive shortcut icons on my desktop? I am currently using HiCDEject v1.0 but the right-click on the icon beside the clock is buggy at times and this is required to "select" the drive open / close. It's a really neat little program when it works. Thanks Brink for your reply.
My System SpecsSystem Spec
05 Aug 2014   #36
Brink

64-bit Windows 10 Pro
 
 

Hello Chuck,

Answers inline.

Quote   Quote: Originally Posted by Chuckamundo View Post
A) If you "change" the drive letter in the script file, does it "show" on the right-click desktop context menu?
No. You would need to change the .reg file for the drive letter as well since that's just the text to be displayed in the context menu. You could just add a drive letter like below to do so.

Code:
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Eject/Close E: CD/DVD Tray]
"icon"="imageres.dll,-30"
 
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Eject/Close E: CD/DVD Tray\command]
@="Eject-Close_CD-DVD.bat"
Quote   Quote: Originally Posted by Chuckamundo View Post
B) If you have dual drives you want this right-click to work for, can you "specify" the drive letter for each drive, and have 2 of these commands on the right-click desktop context menu @ the same time? Drives are E: & F: and powered open / close.
Yes. You would need to modify and create two .bat files for each drive letter. You would also need to modify the .reg file to add a second context menu for the other driver letter. Substitute your drive letters below instead.

BAT File:
Code:
IF EXIST %TEMP%\DVDOPEN GOTO :CD/DVDCLOSE
:CD/DVDOPEN
    echo 1 > %TEMP%\DVDOPEN
    start "" nircmd.exe cdrom open E:
    exit
:CD/DVDCLOSE
    DEL %TEMP%\DVDOPEN
    start "" nircmd.exe cdrom close E:
REG file:
Code:
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Eject/Close E: CD/DVD Tray]
"icon"="imageres.dll,-30"
 
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Eject/Close E: CD/DVD Tray\command]
@="Eject-Close_CD-DVD_E.bat"
 
 
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Eject/Close F: CD/DVD Tray]
"icon"="imageres.dll,-30"
 
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Eject/Close F: CD/DVD Tray\command]
@="Eject-Close_CD-DVD_F.bat"
Quote   Quote: Originally Posted by Chuckamundo View Post
C) Wonder if there's a script / program to actually add these commands to the right-click drive shortcut icons on my desktop? I am currently using HiCDEject v1.0 but the right-click on the icon beside the clock is buggy at times and this is required to "select" the drive open / close.
You could modify the .reg file to use the registry path below instead, but the context menu will be there for all drives, and not just CD/DVD drives.

Code:
[HKEY_CLASSES_ROOT\Drive\Shell\Eject/Close CD/DVD Tray]
"icon"="imageres.dll,-30"
 
[HKEY_CLASSES_ROOT\Drive\Shell\Eject/Close CD/DVD Tray\command]
@="Eject-Close_CD-DVD.bat"
My System SpecsSystem Spec
06 Aug 2014   #37
Chuckamundo

Win 2000 Pro x32 SP4 / Win 7 Home Premium x64
 
 

Hi Brink.

Thank you sir for the "gorey" details! Never did learn the @ % "" stuff but know the application(s). FYI, scripts / reg file world is ALWAYS black / white, it either works and always works, or you forgot the dang " somewhere. Thanks again & i'll post a prognosis when i have "played" with the above.
My System SpecsSystem Spec
06 Aug 2014   #38
Brink

64-bit Windows 10 Pro
 
 

You're most welcome. If you have any questions, please feel free to ask.
My System SpecsSystem Spec
07 Aug 2014   #39
Chuckamundo

Win 2000 Pro x32 SP4 / Win 7 Home Premium x64
 
 

Hi Master Brink.

It's alive, ALIVE, A L I V E! Yes, it works, for E & F drives, very simple & that's the way it is and should be. Now, to really put that grey matter to the test! There ARE programs that "add" right-click options to icon shortcuts (ie: the / my desktop drive icons for E & F) or is there a way to "specify" in the registry or system tweak to do this? The batch and Nir program work flawlessly. Thanks for your reply.
My System SpecsSystem Spec
Comment

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




Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search




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 07:48.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App