# Detecting CD-ROM drives

**URL:** https://discussions.unity.com/t/detecting-cd-rom-drives/28443
**Category:** Questions & Answers
**Created:** [September 14, 2011, 12:22pm UTC](https://discussions.unity.com/t/detecting-cd-rom-drives/28443 "2011-09-14T12:22:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![TecsiAron](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/tecsiaron/32/383370_2.png) [@TecsiAron](https://discussions.unity.com/u/TecsiAron)
#### Post date: [September 14, 2011, 12:22pm UTC](https://discussions.unity.com/t/detecting-cd-rom-drives/28443/1 "2011-09-14T12:22:56Z")

</div>

Im trying to integrate our current security algorithms in Unity, this would require me to detect all the cd drives on the users computer. I Found two ways to do it in C#:  
Using ManagementObjectSearcher to query WMI, or using System.IO.DriveInfo.GetDrives(), but I get “NotImplementedException: The requested feature is not implemented.” when using either.

---

<div class="post-metadata">

### Author: ![TecsiAron](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/tecsiaron/32/383370_2.png) [@TecsiAron](https://discussions.unity.com/u/TecsiAron)
#### Post date: [September 26, 2011, 2:40pm UTC](https://discussions.unity.com/t/detecting-cd-rom-drives/28443/2 "2011-09-26T14:40:19Z")

</div>

Hey, just an update, I found a solution to my problem.(Again i mention that I was only looking for a solution for Windows stand alone player).  
I called the following command: wmic /OUTPUT:%TEMP%\cdRomInfo.txt PATH Win32\_CDROMDrive GET /VALUE /FORMAT:csv, this outputs a csv formatted txt file in the current users temp folder wich contains a bunch of info about the CD-Rom drives. (it can also give lots of technical info about other hardware components like processor, RAM etc)
