New
#30
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.
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.
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 "
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?
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.
Hello Chuck,
Answers inline. :)
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"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:
REG 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:
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"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"
Last edited by Brink; 06 Aug 2014 at 10:01. Reason: typo
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.
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.