Eject CD

User avatar
weese237
2StarLounger
Posts: 189
Joined: 26 Jan 2010, 23:39
Location: Florida, USA

Eject CD

Post by weese237 »

Hello! Hope everyone is well and staying safe.

I have a little program that I got years ago call EjectCD.exe It does one thing and only one thing. I guess it's a "freeware runtime file". Believe it or not, it still works on Windows 10!

This is what is annoying, when I double click on it, a dos window opens up and stays for a few seconds, even after the tray has been opened. Is there a setting to make it work like hidden or something? Sorry if I don't know the correct terminology. LOL

Thank you!
Louise     :smile:

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Eject CD

Post by HansV »

Hi Louise,

Welcome back!

There are several utilities named EjectCD.exe. Please right-click the one that you use, and select Properties from the context menu.
Then activate the Details tab.
What is listed as Product name and as Copyright? Or make a screenshot of the window and post it here. Thanks in advance!
Best wishes,
Hans

User avatar
weese237
2StarLounger
Posts: 189
Joined: 26 Jan 2010, 23:39
Location: Florida, USA

Re: Eject CD

Post by weese237 »

Hi Hans. Will do as soon as I return home.
I wonder if those that you found are more current. Will have to check that out as well!
Thank you!
Louise     :smile:

User avatar
Nick Vittum
4StarLounger
Posts: 475
Joined: 21 Feb 2020, 21:27
Location: Vermont (USA)

Re: Eject CD

Post by Nick Vittum »

As a side note: this may or may not be of interest to you, but I'll mention it:

If you drag the CD drive icon from "my computer" onto your desktop, it will create a shortcut "with features." Then if you right-click on that icon, you can select "eject" from the drop-down menu that appears. It's two steps instead of one, I know. But it's simple and works flawlessly.

(this works in Windows 7; I assume it works in 10, but I don't know)

Added: It appears that you can also create a direct shortcut to the eject command line, also. It's a little more involved to create and I haven't tried it, but if you're interested, the details are here.
Last edited by Nick Vittum on 17 May 2020, 15:23, edited 1 time in total.
—Nick

I’m only an egg (but hard-boiled)

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Eject CD

Post by HansV »

Yes, that works on Windows 10 too.
Best wishes,
Hans

User avatar
weese237
2StarLounger
Posts: 189
Joined: 26 Jan 2010, 23:39
Location: Florida, USA

Re: Eject CD

Post by weese237 »

Hello again,

Nick, That sounds interesting. I'll check it out.

Hans, Here's the screenshot that you mentioned:
You do not have the required permissions to view the files attached to this post.
Louise     :smile:

User avatar
weese237
2StarLounger
Posts: 189
Joined: 26 Jan 2010, 23:39
Location: Florida, USA

Re: Eject CD

Post by weese237 »

Nick, I don't think that will work for me as my CD/DVD is external. Only shows up when I plug it in which is not very often.

Thanks
Louise     :smile:

User avatar
weese237
2StarLounger
Posts: 189
Joined: 26 Jan 2010, 23:39
Location: Florida, USA

Re: Eject CD

Post by weese237 »

Hello again,
I changed the "run" section on the desktop shortcut to "minimized". That is acceptable to me. Big Dos window blocking everything doesn't come up now. Good enough for me!

Thank you all,
Louise     :smile:

User avatar
weese237
2StarLounger
Posts: 189
Joined: 26 Jan 2010, 23:39
Location: Florida, USA

Re: Eject CD

Post by weese237 »

Nick,
I plugged in the drive and created a shortcut. Works fine! Doesn't go away when the drive is unplugged which I thought it would. This is a great alternative! Thank you!
Louise     :smile:

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Eject CD

Post by HansV »

Looks like you've got things sorted out! :thumbup:
Best wishes,
Hans

User avatar
weese237
2StarLounger
Posts: 189
Joined: 26 Jan 2010, 23:39
Location: Florida, USA

Re: Eject CD

Post by weese237 »

I do Hans, thank you. I'll be posting something else under Excel and I know you are the expert and will be able to help me there! LOL
Louise     :smile:

User avatar
weese237
2StarLounger
Posts: 189
Joined: 26 Jan 2010, 23:39
Location: Florida, USA

Re: Eject CD

Post by weese237 »

Hi Hans,
I worked it out again! I just need to be more patient with myself. Won't be going to over to Excel after all!
Louise     :smile:

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Eject CD

Post by HansV »

Good for you!
Best wishes,
Hans

User avatar
Nick Vittum
4StarLounger
Posts: 475
Joined: 21 Feb 2020, 21:27
Location: Vermont (USA)

Re: Eject CD

Post by Nick Vittum »

weese237 wrote:
17 May 2020, 17:28
Nick, I plugged in the drive and created a shortcut. Works fine! Doesn't go away when the drive is unplugged which I thought it would. This is a great alternative! Thank you!
You're more than welcome. :cheers: With all the help I've received here, it's nice to be able to give back a little....
Dr.Seuss wrote: "—no matter how small."
—Nick

I’m only an egg (but hard-boiled)

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15498
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Eject CD

Post by ChrisGreaves »

late on the scene ...

I have a little BATch file, whose contents I reproduce below. Copy the text into a Notepad file and save the file as "EjectMe.bat"
Cheers
Chris

REM https://superuser.com/questions/972447/ ... ia-the-cmd
:: 3:36 PM 09/09/2018
@echo off
echo Set oWMP = CreateObject("WMPlayer.OCX.7") >> %temp%\temp.vbs
echo Set colCDROMs = oWMP.cdromCollection >> %temp%\temp.vbs
echo For i = 0 to colCDROMs.Count-1 >> %temp%\temp.vbs
echo colCDROMs.Item(i).Eject >> %temp%\temp.vbs
echo next >> %temp%\temp.vbs
echo oWMP.close >> %temp%\temp.vbs
%temp%\temp.vbs
timeout /t 1
del %temp%\temp.vbs
REM END https://superuser.com/questions/972447/ ... ia-the-cmd
An expensive day out: Wallet and Grimace

User avatar
weese237
2StarLounger
Posts: 189
Joined: 26 Jan 2010, 23:39
Location: Florida, USA

Re: Eject CD

Post by weese237 »

Hello,

Thank you very much! Will give that a try.
Louise     :smile:

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15498
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Eject CD

Post by ChrisGreaves »

weese237 wrote:
21 May 2020, 23:49
...Will give that a try.
You are welcome.
I have found it especially useful on the DELL laptop whose "eject" button is broken.
EjectMe.bat is like having a little robot inside the laptop with its own paper-clip!
Cheers
Chris
An expensive day out: Wallet and Grimace

User avatar
weese237
2StarLounger
Posts: 189
Joined: 26 Jan 2010, 23:39
Location: Florida, USA

Re: Eject CD

Post by weese237 »

Chris,
You’re right. It’s funny to see it work. That’s what I liked about the little file that I’ve had for years.

Thanks again,
Louise     :smile:

User avatar
Argus
GoldLounger
Posts: 3081
Joined: 24 Jan 2010, 19:07

Re: Eject CD

Post by Argus »

ChrisGreaves wrote:
21 May 2020, 23:56
I have found it especially useful on the DELL laptop whose "eject" button is broken.
EjectMe.bat is like having a little robot inside the laptop with its own paper-clip!
weese237 wrote:
22 May 2020, 00:09
Chris,
You’re right. It’s funny to see it work. That’s what I liked about the little file that I’ve had for years.
Since my (main) desktop has door at the front, the little tray would hit a wall within just a couple of mm. :laugh:

(I may have missed it, but what's wrong with the option to eject a CD/DVD via context menu in Explorer? Obviously a link on the Desktop is one or two clicks less.)
Byelingual    When you speak two languages but start losing vocabulary in both of them.

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15498
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Eject CD

Post by ChrisGreaves »

Argus wrote:
22 May 2020, 00:33
...but what's wrong with the option to eject a CD/DVD via context menu in Explorer? Obviously a link on the Desktop is one or two clicks less.)
Hi Argus.
Quite so.
I am sure that I had tried r/c eject before heading off to do a search of the web.
I quite like the heavy-handedness of EjectMe.bat.
Cheers
Chris
An expensive day out: Wallet and Grimace