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

Page 4 of 9 FirstFirst ... 23456 ... LastLast

  1. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #30

    IownAmoneyPit said:
    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 Computer


  2. Posts : 1
    Win 7/64 Pro
       #31

    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 Computer


  3. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #32

    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 Computer


  4. Posts : 39
    64
       #33

    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 Computer


  5. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #34

    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 Computer


  6. Posts : 24
    Win 2000 Pro x32 SP4 / Win 7 Home Premium x64
       #35

    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 Computer


  7. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #36

    Hello Chuck,

    Answers inline. :)

    Chuckamundo said:
    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"
    Chuckamundo said:
    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"
    Chuckamundo said:
    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"
    Last edited by Brink; 06 Aug 2014 at 10:01. Reason: typo
      My Computer


  8. Posts : 24
    Win 2000 Pro x32 SP4 / Win 7 Home Premium x64
       #37

    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 Computer


  9. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #38

    You're most welcome. If you have any questions, please feel free to ask. :)
      My Computer


  10. Posts : 24
    Win 2000 Pro x32 SP4 / Win 7 Home Premium x64
       #39

    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 Computer


 
Page 4 of 9 FirstFirst ... 23456 ... LastLast

  Related Discussions
Our Sites
Site Links
About 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 17:57.
Find Us