Sprezzatura Posted December 20, 2021 Posted December 20, 2021 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.
dbminter Posted December 20, 2021 Posted December 20, 2021 I'm not familiar with the command line switches, but is there not something like /LOAD that would do the opposite of the /EJECT?
Sprezzatura Posted December 21, 2021 Author Posted December 21, 2021 There is no /LOAD in the documentation. Besides, newer CD/DVD drives are unable to load or close the drive. They discontinued that capability to cut down the cost.
dbminter Posted December 21, 2021 Posted December 21, 2021 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.
LIGHTNING UK! Posted December 21, 2021 Posted December 21, 2021 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.
Sprezzatura Posted December 21, 2021 Author Posted December 21, 2021 (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 December 21, 2021 by Sprezzatura
Sprezzatura Posted December 21, 2021 Author Posted December 21, 2021 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now