Jump to content

Simplest/quickest way to eject in command line mode?


Sprezzatura

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

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