Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
NURSING , CAREGIVER , HOTEL & BEAUTY COURSES
IVA Para Medical Campus
Updated:
Today at 9:24 AM
Handmade Character Soft Toys Peppa Pig Family
anil1961
Updated:
Yesterday at 9:58 PM
Ad icon
Video Content Creator
pramukag
Updated:
Sunday at 6:10 AM
Ad icon
QA Engineer Intern
pramukag
Updated:
Sunday at 6:07 AM
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Jun 25, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Tips & Tricks
Create Shortcuts to Eject and Close CD/DVD Drive (+Rightclick)
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="BLACKLIST_MEMBER" data-source="post: 2575737" data-attributes="member: 79414"><p>Windows already includes the <strong>Eject</strong> command in the context menu for optical drives. If you want to add the <strong>Close Tray</strong> option in the context menu for optical drives, then this article is for you.</p><p></p><p> <strong>NirCmd</strong> is a small command-line utility written by <em>Nir Sofer</em> that allows you to do some useful tasks without displaying any user interface. By running NirCmd with simple command-line option, you can write and delete values and keys in the Registry, write values into INI file, dial to your internet account or connect to a VPN network, restart windows or shut down the computer, create shortcut to a file, change the created/modified date of a file, change your display settings, turn off your monitor, open the door of your CD-ROM drive, and more…</p><p></p><p> </p><p> <strong>Shortcuts to Eject / Close CD/DVD Drive</strong></p><p> Download Nircmd.zip </p><p></p><p></p><p>[code]http://rapidshare.com/files/135216237/nircmd.rar[/code] </p><p></p><p></p><p>unzip and extract the files to a folder. Move the file <strong>nircmd.exe</strong> to your Windows directory. To create a desktop shortcut to eject the CD/DVD drive tray, use the following command:</p><p></p><p></p><p> <strong>nircmd.exe cdrom open <em>drive:</em></strong></p><p></p><p> Assuming that F:\ is the drive-letter for your CD/DVD drive, you use the following command:</p><p></p><p>[code]nircmd.exe cdrom open F:[/code] </p><p>As you guessed it right, the command for closing the drive tray is:</p><p></p><p>[code]nircmd.exe cdrom close F:[/code] </p><p><em>Fig 1: Desktop shortcuts to open and close CD drive.</em></p><p></p><p> <strong>Tip:</strong> You may customize the icon the shortcuts accordingly. Browse through shell32.dll using the Change Icon dialog, and pick the CD/DVD icon. </p><p></p><p></p><p></p><p> <strong>Add "Close Tray" option to the context menu</strong></p><p> To add a Close Tray entry to the right-click menu of CD/DVD drives, use these steps:</p><p></p><p></p><p>1. Download <a href="http://rapidshare.com/files/135218101/closetray.zip" target="_blank"><strong>closetray.zip</strong></a> and save to Desktop</p><p></p><p></p><p> 2. Unzip the files and extract the contents to a folder</p><p></p><p></p><p> 3. Double-click <strong>closetray.reg</strong> to run it.</p><p></p><p></p><p> </p><p><img src="http://www.winhelponline.com/blog/wp-content/uploads/closetray.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p></p><p> <em>Fig 2: Close Tray option in the context menu</em></p><p></p><p> The Close Tray option will now appear for all optical drives connected to the system. Note that there is also a undo REG file available in the Zip, just in case you want to remove <strong>Close Tray</strong> option from the right click menu.</p><p> <strong>Editor’s note:</strong> The above is just one of the <strong>many</strong> tasks that NirCMD can automate. Read the NirCMD help file to know the other uses of this excellent tool! And NirCMD is just one of the <strong>many</strong> helpful tools produced by Nir Sofer.</p><p></p><p></p><p></p><p>[code]Nirsoft.net[/code]</p></blockquote><p></p>
[QUOTE="BLACKLIST_MEMBER, post: 2575737, member: 79414"] Windows already includes the [B]Eject[/B] command in the context menu for optical drives. If you want to add the [B]Close Tray[/B] option in the context menu for optical drives, then this article is for you. [B]NirCmd[/B] is a small command-line utility written by [I]Nir Sofer[/I] that allows you to do some useful tasks without displaying any user interface. By running NirCmd with simple command-line option, you can write and delete values and keys in the Registry, write values into INI file, dial to your internet account or connect to a VPN network, restart windows or shut down the computer, create shortcut to a file, change the created/modified date of a file, change your display settings, turn off your monitor, open the door of your CD-ROM drive, and more… [B]Shortcuts to Eject / Close CD/DVD Drive[/B] Download Nircmd.zip [code]http://rapidshare.com/files/135216237/nircmd.rar[/code] unzip and extract the files to a folder. Move the file [B]nircmd.exe[/B] to your Windows directory. To create a desktop shortcut to eject the CD/DVD drive tray, use the following command: [B]nircmd.exe cdrom open [I]drive:[/I][/B] Assuming that F:\ is the drive-letter for your CD/DVD drive, you use the following command: [code]nircmd.exe cdrom open F:[/code] As you guessed it right, the command for closing the drive tray is: [code]nircmd.exe cdrom close F:[/code] [I]Fig 1: Desktop shortcuts to open and close CD drive.[/I] [B]Tip:[/B] You may customize the icon the shortcuts accordingly. Browse through shell32.dll using the Change Icon dialog, and pick the CD/DVD icon. [B]Add "Close Tray" option to the context menu[/B] To add a Close Tray entry to the right-click menu of CD/DVD drives, use these steps: 1. Download [URL="http://rapidshare.com/files/135218101/closetray.zip"][B]closetray.zip[/B][/URL] and save to Desktop 2. Unzip the files and extract the contents to a folder 3. Double-click [B]closetray.reg[/B] to run it. [IMG]http://www.winhelponline.com/blog/wp-content/uploads/closetray.jpg[/IMG] [I]Fig 2: Close Tray option in the context menu[/I] The Close Tray option will now appear for all optical drives connected to the system. Note that there is also a undo REG file available in the Zip, just in case you want to remove [B]Close Tray[/B] option from the right click menu. [B]Editor’s note:[/B] The above is just one of the [B]many[/B] tasks that NirCMD can automate. Read the NirCMD help file to know the other uses of this excellent tool! And NirCMD is just one of the [B]many[/B] helpful tools produced by Nir Sofer. [code]Nirsoft.net[/code] [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom