How to Create a Shortcut to Eject CD or DVD Drive

Windows provides a contextual right click menu item of “Eject”, which will be shown when users right click on CD-ROM, DVD-ROM or CD/DVD burner/writer optical drive, and when selected will eject or open the CD/DVD disc tray. For some reason, it may be useful to create an Eject shortcut or icon that will auto eject and open CD or DVD drive when click on the shortcut. The “Eject” shortcut can be placed on desktop or Quick Launch bar or any other convenient place for easy and fast access, eliminating the need to press the physical eject button on the drive.

How to Create Shortcut to Eject the CD or DVD Drive

To create an Eject CD/DVD shortcut, we need to rely on third party utility which has open and eject CD/DVD tray function. One such software application which is free and small is Eject CD 1.0 by Alex Nolan, a very tiny program which can be used to eject the default CD drive, DVD drive, or burner and writer from the command prompt or from a batch file. Of course, it’s possible to be called as target from shortcut too.

Note: You can also make use of third party programs listed here used to close the CD/DVD drive.

Download Eject CD.

Actually, there is no installation required for EjectCD.exe. So you can just place it on desktop, Quick Launch bar, or any folder you like, and simply double click on it to eject the CD/DVD drive. If you decide to store the executable in Program Files, and want to create a shortcut on desktop that call the program to eject disc tray of CD, use following step:

  1. Right click on the EjectCD.exe.
  2. Choose Send To.
  3. Select Desktop (Create Shortcut).

Then assign a name, such as “Eject CD” or “Eject DVD” to the shortcut on desktop by renaming it. By default it will be named “ejectcd – Shortcut” in Windows Vista and “Shortcut to ejectcd” in Windows XP. Users can also change the icon of the shortcut.

Once created, the eject CD/DVD shortcut or icon can be moved anywhere, and when double click, will immediately eject open the optical drive. Users can also assign an shortcut key to the shortcut so that CD/DVD drive can be ejected with just keyboard press, or create another shortcut to close the door of CD/DVD drive.



9 Responses to “How to Create a Shortcut to Eject CD or DVD Drive”

  1. paulie
    June 3rd, 2009 19:07
    9

    mad

  2. How to Create a Shortcut to Eject CD or DVD Drive (Excerpt) » My Digital Life
    April 10th, 2008 15:03
    8

    [...] reading How to Create a Shortcut to Eject CD or DVD Drive at Tip and [...]

  3. EjectMe! Yahoo! Widget Download to Eject and Close Optical Drive from Desktop » Tip and Trick
    April 5th, 2008 00:50
    7

    [...] or open, and, if motorized (notebook computer out of luck), close the optical drives. (Also see create Eject CD/DVD shortcut and create Close CD/DVD shortcut) EjectMe! works in all version of Windows operating system, [...]

  4. How to Create a Shortcut to Close the CD/DVD Drive » Tip and Trick
    April 3rd, 2008 00:57
    6

    [...] can create a shortcut to open or eject the CD/DVD drive, it’s time to create another shortcut to close the CD/DVD-ROM or CD/DVD burner or writer [...]

  5. CJ
    April 2nd, 2008 07:52
    5

    VB.NET Code

    'private field:
    Private setTrayStatus As Long
    'API
    Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" _
    (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, _
    ByVal uReturnLength As Integer, ByVal hwndCallback As Integer) As Integer

    'use this code to open the tray:
    setTrayStatus = mciSendString("Set CDAudio Door Open", Nothing, 0, 0)

    'use this code to close the tray:
    setTrayStatus = mciSendString("Set CDAudio Door Closed", Nothing, 0, 0)

  6. Deyaa Addeen Fahmy
    April 1st, 2008 16:20
    4

    Frankly I don’t know, But I don’t like using third party.
    thanks .

  7. admin
    April 1st, 2008 14:02
    3

    Not as I know of. If you manage to find a method using Windows internal DLL to eject CD-ROM drive, do share.

  8. Deyaa Addeen Fahmy
    April 1st, 2008 13:58
    2

    Can I do this without third party?
    Thanks a lot 4 efforts.

  9. How to Add Keyboard Shortcut (Hot Key) to Eject CD or DVD Drive » Tip and Trick
    April 1st, 2008 13:58
    1

    [...] to press the open or eject button to open the CD or DVD drive disc tray inconvenient, then you can create a shortcut to fast access the eject CD and DVD drive function. Shouldn’t it be nicer if user can also simply press a keyboard shortcut or keyboard [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to Tip and Trick Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

Incoming Search Terms for the Article

eject cd cmd - cmd eject - eject - open cd tray cmd - cmd eject cd - ejectcd.exe - eject cd batch file - cd eject cmd - eject cd from CMD - cmd eject drive - batch open cd drive - eject shortcut - EJECT CD SHORTCUT - eject cd batch - code to eject cd in .net - batch file open cd drive - open cd drive cmd - cmd open cd drive - open cd drive batch - open cd drive bat - batch file to open cd drive - batch file open cd tray - ejectcd - open cd drive with cmd - dvd shortcut - eject cmd - batch file to open and close cd drive - batch file to open cd tray - dvd eject shortcut - code to open cd drive - eject cd - eject from cmd - close cd drive cmd - open cd drive with batch file - open cd tray with cmd - open cd drive using cmd - vista eject cd - cmd eject cd drive - cmd cd eject - batch open cd tray - eject cd drive shortcut - close cd drive xp shortcut - add shortcut to eject dvd - CD to auto eject batch - how to eject cd drive using vb.net program - cd tray automatic eject utility - how to open cd drive with cmd - what is the command for Creating a Shortcut to Execute the CD/DVD Drive - eject disk shortcut - open cd drive shortcut - cmd code to open cd drive - cmd eject disc - Windows Shortcut eject CD - Open cd tray using cmd - batch file to eject cd - eject cd close - cd eject code - eject disk exe - batch command to open cd tray - cd rom eject shortcut - eject cd/dvd for windows xp - code to open cd tray - batch code to open cd drive - how to open cd drive CMD - .bat open cd drive - xp shortcut eject cd - eject dvd disk - how to eject a disc with a batch file - BATCH FILE TO OPEN AND CLOSE CD DRIVES - eject cd bat - open CD tray with batch - batch command open disk tray - shortcut eject dvd drive - "eject drive" "batch file" - xp shortcut to eject cd -