View Full Version : Can I create a shortcut to eject the CD?

14-03-2003, 06:28 PM
Is there a way to make a desktop shortcut to eject the CD? I've got one to shut the system down, I guess there is a way to open the CD cover that isn't right clicking in the drive and clicking eject.

14-03-2003, 06:57 PM
That would be useful Ferg - let's see if anyone comes up with something.

The nearest I've got is to put a shortcut to the cd rom drive in the taskbar and r.click and eject from there

14-03-2003, 07:20 PM
Ferg - brig
Ho guys, we're talking about two mouse key depressions here.
Right on the icon to produce the wee menu, left to Eject.
How much 'shorter' a short-cut can you get?
Regards Scouse

Terry Porritt
14-03-2003, 07:21 PM
This query has cropped up several times in the past. There are one or two joke programs around if you search.

I found this site where a program can be downloaded including source code, cdr.zip.
However separate icons have to be made for cd opening and cd closing. It works ok though.


Scroll down the page to where it says downloads.

Other than a short cut to the cd drive to eject there isnt as far as I know any other way of doing it except by way of one of these programs

14-03-2003, 07:51 PM
Scouse said "Ho guys, we're talking about two mouse key depressions here. Right on the icon to produce the wee menu, left to Eject.
How much 'shorter' a short-cut can you get?"

Hehehe , well true, I guess that is pretty short ;-)

The reasons I asked (and its probably sad to say) is that I was going to "stealth" my kids' CD (place a cover over it so you can't see it) and the only way to open it is the clicking way, I was hoping for a nice easy one click option.

Thanks for the info Terry, I'll have a look.

Next step the window in the kids computer. And truly the kids computer, not mine...(ahem).

14-03-2003, 08:48 PM
What about setting up a function key? Is that possible?

15-03-2003, 12:20 AM
Argh, and I only just deleted a wee piece of VBScript that would open up all the ROM drives in a computer.

I'll have a hunt and see if I can find it again.

Graham L
15-03-2003, 01:32 PM
There's a command (programme) available for Unix called eject which does this. So it's obviously possible to do it. I have a very vague memory of seeing DOS programmes to do it from DOS in the Simtel archive site.

15-03-2003, 11:22 PM
This site:


has a script for opening the drives, if I get a chance I might have a play with it, perhaps thats the answer.


09-01-2008, 09:04 PM
guys i think u all know about shortcuts for shutdown, hibernate ........the all use rundl32.exe then the .dll file then its object(method) , here i was looking for the .dll file responsible for Eject purpose.
U can also think of windows media player, on the menu bar, under play tab , there is Eject(Ctrl + E), that really works, so there must be a way to find the responsible .Dll file

Speedy Gonzales
09-01-2008, 09:26 PM
Yer I know this thread is nearly 5 yrs old.

BUT, this site (http://www.alexnolan.net/software/commandline.htm) has a command called ejectcd.

I just downloaded the file, in the link and yup sure enough type ejectcd it ejects the cd.

Even made a shortcut on the desktop and double-clicked. The cd opened.

09-01-2008, 09:47 PM
I knew if I waited long enough, I would get an answer to that one!

Shame I threw the machine out a year ago.:lol:

Speedy Gonzales
09-01-2008, 09:50 PM
It'll probably work on the pc you're on now. Well it works in XP.

No prob at all.

10-01-2008, 02:20 AM
Wow..... talk about a comeback!

10-01-2008, 05:53 AM
Rather than eject we can inject:-