Page 1 of 1

What is the best way to check for a disc in an optical drive?

Posted: 2023-Dec-11, 7:19 am
by Rekrul
I have a couple methods of doing this, but I was wondering if there was an 'official' method of checking to see if there's a disc in an optical drive?

Re: What is the best way to check for a disc in an optical drive?

Posted: 2023-Dec-11, 11:14 am
by Simon_Weel
Don't know if it's official, but maybe this could help? Like

Code: Select all

wmic logicaldisk where drivetype=5 get volumename

Re: What is the best way to check for a disc in an optical drive?

Posted: 2023-Dec-11, 5:08 pm
by Simon Sheppard
The VOL command can do that.