In C# how do you detect is a specific drive is a Hard Drive, Network Drive, CDRom, or floppy?
DriveInfo.DriveType should work for you.
DriveInfo[] allDrives = DriveInfo.GetDrives(); foreach (DriveInfo d in allDrives) { Console.WriteLine("Drive {0}", d.Name); Console.WriteLine(" File type: {0}", d.DriveType); }