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

Microsoft Windows
Post Reply
Rekrul
Posts: 52
Joined: 2021-Aug-15, 11:29 pm

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

Post 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?
Simon_Weel
Posts: 36
Joined: 2021-Dec-13, 3:53 pm

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

Post 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
Post Reply