Jump to content
Sizzlechest

Get disc information from command line

Recommended Posts

I'd like a way to get information about a disc to verify there is only one session and has been finalized. I was able to accomplish this with IMGBurn using the following command:

 

"C:\Program Files (x86)\ImgBurn\ImgBurn.exe" /INFO "test.txt" /CLOSEINFO /SRC 1:0:0 /MODE Discovery

 

I can then parse the output to verify the disc meets my criteria. Is there a better way to do this?

Share this post


Link to post
Share on other sites

I'd imagine that's the only way to do it in ImgBurn.

 

Of course anything outside of ImgBurn is also pretty much outside the scope of this forum. :)

Share this post


Link to post
Share on other sites

Right, but I was wondering if there is a better way. This still brings up the GUI rather than a completely silent opperation. Could the output be dumped to standard output rather than a file. I'm not sure how it handles errors like when there's no disc in the drive. Stuff like that.

Share this post


Link to post
Share on other sites

ImgBurn is a GUI app.

 

There may well be other (actual 'command line') tools that'll do what you're after.

 

You could also learn to write your own.

Share this post


Link to post
Share on other sites

×

Important Information

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