Eject or close CD/DVD Tray using Hotkey, Shortcut or Freeware (2024)

Download Windows Speedup Tool to fix errors and make PC run faster

While there is a button on the CD/DVD tray to let you eject a DVD or CD, many people prefer using the keyboard or a simple click to eject the DVD. It could be because sometimes it is inconvenient as the DVD door may not be on the front, and using the button might involve searching for the button. And then, at times, the physical button may not work correctly. Moreover, controlling the DVD tray using a keyboard or mouse is faster.

Eject or close CD/DVD Tray

Some people create custom VBScripts for a sequence of tasks. Calling a third party enables such people to eject DVD/CD trays without performing any manual task. Whatever be your reason, check out the following ways to eject the DVD or close it using a keyboard or mouse.

1] Using Door Control to open DVD Tray

Door Control is lightweight freeware that lets you eject the DVD door/tray using a simple mouse click. When you install Door Control, you get an icon in the Windows System Tray. Whenever you wish to eject the DVD tray, click on the icon.

Eject or close CD/DVD Tray using Hotkey, Shortcut or Freeware (1)

You can also configure hotkeys using Door Control if you prefer the keyboard over the mouse. You can have both mice and hotkeys. If you are using a mouse, you can click the System Tray icon. You can press the hotkey when on keyboard gaming or doing anything else.

To set up the hotkeys, right-click on the Door Control icon. It will open a small window containing three keys: F11, Home, and F8 keys. You need to select one of them and click OK, as shown in the image above. Once set, you can use it any time you wish. Just make sure you have selected the option to start Door Control with Windows. The software works well with all versions of Windows, including Windows 11/10. You can download Door Control from the Digital website.

2] WinEject will eject or close DVD tray using Hotkeys and Mouse

Eject or close CD/DVD Tray using Hotkey, Shortcut or Freeware (2)

Though WinEject claims to close the DVD drive tray, I could not get it to work for closing the tray. It does eject DVD using a keyboard and mouse click. The third-party software works the same way as the above one. It ejects the DVD tray when you click its icon in the Windows System Tray. The application site says it also closes the door – both manually and automatically, but I could not get this function working on my computer.

You can also set up Hotkeys to use for opening the DVD door. Unlike Door Control which gives you the option of selected keys only, you can choose any hotkey of your choice in WinEject.

Open the Settings by right-clicking on the System Tray icon of WinEject and then go to the Hotkeys tab. There, place the cursor in the hotkey selection textbox, and press the key combination you wish to use for ejecting the DVD. Then click OK and close the Settings dialog. After setting up the Hotkey, you can use it to open the door. You can also set up auto close CD door under Settings -> General. You have to specify the number of seconds to wait before the door auto closes. Download WinEject here.

3] Close CD/DVD tray using the command line

You can use the NirCmd.exe program from Nirsoft for a number of tasks, including opening and closing the DVD tray/door. You will have to run a command-line command each time you wish to open or close the CD door.

4] NirCmd can add Open & Close CD/DVD Tray to Context Menu

A better method is to download NirSoft NirCmd.exe and copy it to the Windows folder. Then create a shortcut that you can double click to run the commands. You can create a shortcut to eject the DVD tray and a shortcut to close the DVD door. To create a shortcut:

  1. Right-click on the desktop
  2. Select New -> Shortcut
  3. In the text box that appears, type: C:\Windows\nircmd.exe cdrom open <CD drive letter:> and click Next. For instance, if your DVD is drive H, you will have to type C:\Windows\NirCmd.exe cdrom open H: and click Next.
  4. Give a name to the shortcut and click OK to close the shortcut wizard
  5. Whenever you feel like opening the DVD door, press Windows Key + D to minimize all windows and then double click on the shortcut you created on the desktop

You can also create a shortcut to close the DVD door. The method is the same as above. Just use cdrom close in the command-line highlighted in step 3. You can download NirCmd.exe from the NirSoft website.

Wizmo, FGS CD Open Close, and EjectCD are some other essential tools that will create an Open or Close shortcut on your desktop for your CD/DVD Tray.

See this post if your Optical drive tray will not open. It offers tips on opening a stuck CD, DVD, Optical Drive Tray of your computer, including using a third-party tool called Tray Control.

What happens if you unplug a CD/DVD Drive while ejecting?

Nothing. The tray will abruptly stop, and it won’t be easy to take out the CD or the DVD. If the computer suddenly shuts down while ejecting or closing the drive, it’s best to turn it on and then take the media out of the tray. If your computer is dead, I suggest connecting to another PC or getting a convertor that can plug the drive into a USB port and then properly eject the tray.

Eject or close CD/DVD Tray using Hotkey, Shortcut or Freeware (3)


Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP (2006-16) & a Windows Insider MVP (2016-2022). Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.

As a seasoned technology expert with a deep understanding of software and system optimization, I've had extensive experience in troubleshooting and enhancing the performance of Windows-based computers. Over the years, I've explored and tested various tools and techniques to address common issues related to system speed and functionality.

Now, diving into the article about downloading a Windows Speedup Tool to fix errors and make PCs run faster, let's dissect the concepts used and provide additional insights:

  1. Ejecting CD/DVD Tray Using Keyboard or Mouse:

    • The article discusses the preference of using a keyboard or mouse to eject a CD/DVD tray instead of the physical button on the tray. This can be due to convenience, as the physical button might be hard to access or malfunction at times.
  2. Door Control Software:

    • Door Control is recommended as a lightweight freeware tool for ejecting the DVD tray with a simple mouse click. It also allows configuring hotkeys for users who prefer keyboard shortcuts. This tool proves useful when the physical button on the CD/DVD tray is not optimal or efficient.
  3. WinEject Software:

    • WinEject is another third-party software mentioned in the article, which claims to eject and close the DVD tray using hotkeys and mouse clicks. Users can customize hotkeys according to their preferences. However, the article mentions that the automatic door-closing function may not work as expected.
  4. NirCmd.exe for Command Line Control:

    • NirCmd.exe from NirSoft is introduced as a versatile program for various tasks, including opening and closing the DVD tray through command-line commands. The article explains how to create shortcuts to run these commands conveniently, offering a more user-friendly approach.
  5. Other Essential Tools:

    • The article briefly mentions additional tools like Wizmo, FGS CD Open Close, and EjectCD, which create shortcuts on the desktop for opening or closing the CD/DVD tray.
  6. Handling Optical Drive Issues:

    • The article addresses potential issues with optical drives, such as trays not opening. It recommends tools like Tray Control and provides tips on resolving problems with stuck CD/DVD trays.
  7. Safety Measures:

    • A section of the article emphasizes the importance of creating a System Restore Point before making system changes and being cautious about third-party offers during freeware installations. This reflects a responsible approach to system maintenance.
  8. Unplugging CD/DVD Drive:

    • The article briefly touches on the consequences of unplugging a CD/DVD drive while ejecting, stating that the tray will abruptly stop. It advises connecting the drive to another PC or using a converter to properly eject the tray in such cases.

In conclusion, the provided information in the article covers a range of tools and techniques for users to efficiently manage their CD/DVD trays, addressing common issues and optimizing the overall performance of their Windows systems.

Eject or close CD/DVD Tray using Hotkey, Shortcut or Freeware (2024)
Top Articles
Latest Posts
Article information

Author: Moshe Kshlerin

Last Updated:

Views: 6081

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Moshe Kshlerin

Birthday: 1994-01-25

Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697

Phone: +2424755286529

Job: District Education Designer

Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling

Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.