Computer Hope

Hardware => Hardware => Topic started by: nilsso on July 13, 2006, 06:13:18 PM

Title: eject cd-rom
Post by: nilsso on July 13, 2006, 06:13:18 PM
how do i eject my cd-rom from ms-dos? what is the command? anyone :)? if its possible
Title: Re: eject cd-rom
Post by: GX1_Man on July 13, 2006, 06:31:27 PM
You can use a visual basic script. Do you have real DOS, or are you referring to some version of Windows command prompt (not the same).
Title: Re: eject cd-rom
Post by: tekman22003 on July 13, 2006, 07:32:39 PM
Some times there is a small hole that you can use a piece of wire to release the cd from the drive.  It just depends on how new or how old the rom drive is.  You should see the small hole drive the drive door.
Title: Re: eject cd-rom
Post by: GX1_Man on July 13, 2006, 07:52:06 PM
I think he was asking about a software command (for whatever reason), rather tthan a sharp object.  ;)
Title: Re: eject cd-rom
Post by: tekman22003 on July 13, 2006, 08:27:19 PM
Thanks for the correction!   ;D
Title: Re: eject cd-rom
Post by: nilsso on July 14, 2006, 06:34:41 AM
lol :P so how do i use python to program a cd-rom opener and then i get it to open in a normal windows computer, which do not have any of this programs...?
Title: Re: eject cd-rom
Post by: Rob Pomeroy on July 14, 2006, 07:35:57 AM
You don't use Python.  You use Windows scripting.
Title: Re: eject cd-rom
Post by: Rob Pomeroy on July 14, 2006, 01:23:11 PM
Quote
how do u know? plz... i hate comments like urs, go bother some1 els, ur comment doesnt belong here
If you ask your question in the programming forum, one of the guys that does WSH scripting may be able to offer a solution.  My response is for your clarification.  Python is a scripting language.  You cannot run Python scripts unless you have the Python parsing engine installed - that's very uncommon on Windows platforms.  Therefore you would need to script in a language already available to the end user - wasn't that the point of your question?

Sheesh - if you ask a direct question it's a bit much to complain when you get a direct answer.
Title: Re: eject cd-rom
Post by: dl65 on July 14, 2006, 01:43:41 PM
nilsso..........
Quote
You don't use Python.  You use Windows scripting.

Based on your question, Robs reply was completely correct and to the point.

Oh yes and by the way ........   go bother some1 els, ur comment doesnt belong here   that response was totaly uncalled for .  
Beware the disembodied head.

Just a tip , you don't want to piss Rob off ..........

dl65  ::)
Title: Re: eject cd-rom
Post by: Sidewinder on July 14, 2006, 02:01:55 PM
This may help you out (WSH solution):

Code: [Select]
Set WMP = CreateObject("WMPlayer.ocx")
Set colCDROMS = WMP.CDROMCollection

If colCDROMS.Count > -1 Then
  For i = 0 to colCDROMS.Count - 1
    colCDROMS.Item(i).Eject
  Next
End If

After saving script with a vbs extension, run from the command line as cscript scriptname.vbs.

Note: if WMPlayer.ocx doesn't work try using WMPlayer.ocx.7

If you have NERO, there are some commands that may be useful. Check your documentation.

Good luck.  8-)

If you need a Python solution, consider reposting this in the DOS or Programming Section.

Title: Re: eject cd-rom
Post by: GX1_Man on July 14, 2006, 02:59:40 PM
nilsso,

I concur with the above. A new poster acting rudely gets very little help in a volunteer forum. You should consider changing your tactics and manners OR your forum. This is not paid support, we are not your employees, and we don't tolerate that.  ;)
Title: Re: eject cd-rom
Post by: Sidewinder on July 14, 2006, 03:19:30 PM
Nilsso,

Just a tip , you REALLY don't want to piss GX1_Man off ..........  

 >:(
Title: Re: eject cd-rom
Post by: nilsso on July 14, 2006, 06:04:10 PM
alright guys.. i am sorry for that comment, i just sometimes write with no brain if u know what i mean :P sorry.. not gonna happen again... :(
Title: Re: eject cd-rom
Post by: dl65 on July 14, 2006, 06:06:51 PM
nilsso......   Remember the old saying .........  "Please engage brain , before activating fingers "

dl65  ::)
Title: Re: eject cd-rom
Post by: nilsso on July 14, 2006, 06:15:44 PM
hehehe... never heard that one before, will keep it in mind in all forums from now on:)
Title: Re: eject cd-rom
Post by: patio on July 15, 2006, 07:38:28 PM
HuH ? ? ?