I need a method to detect if an optical DVD/CD drive is physically present on a computer. Not if a disc is inserted or not (unless that will help my goal).
Using DirectoryExists to me wouldn't always work because not everyone's optical disc drive is D:\ and wouldn't it return false
even if there was a drive, but no disc was current inserted?
If you are prepared to restrict consideration to mapped volumes only you can follow this procedure: