Jump to content

Simplest/quickest way to eject in command line mode?


Recommended Posts

Posted

What is the quickest way to eject a DVD, if that's the only thing you want to do?

I don't want to use the "/EJECT YES" option when burning, because the batch job needs to perform another operation after the burn, and the DVD must stay in the drive.

I have tried "/MODE READ /EJECT YES", but it takes forever to read a 4GB disc. Ditto VERIFY.

"/MODE PICKER" opens up a dialog and stops the job.

Posted

I thought that maybe the command line switch might pre-date the creation of slim model optical drives which removed the ability to power load the tray.  But, if you are using a slim model drive, it wouldn't matter.

Posted

ImgBurn is not a command line tool and the flag to eject is only looked at after an operation (read/verify/burn etc) has completed. There's no way to use it to just eject the disc like that.

Posted (edited)

Pity... I created a batch job to backup my data. The entire sequence runs automatically with no human intervention other than loading blank DVDs and one click to start. It invokes ImgBurn repeatedly to create ISOs and burn them.

To do an interactive backup of a complex set of data would be tedious, repetitive and time-wasting. Sometimes batch is better than interactive.

Edited by Sprezzatura
Posted

Here is the solution, available throughout the Web. Put this in a file, call it "eject.vbs:

Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection     
For i = 0 to colCDROMs.Count-1           
colCDROMs.Item(i).Eject                  
next                                     
oWMP.close

Invoke it from the command line.

C:> eject.vbs

 

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.