Wow! Thank you very much for your replies...Marc's answer concerning Newtonian and Einsteinian physics was hilarious. Will try out the suggested methods and let u know. Thanks once again.
I code at Will!
Wow! Thank you very much for your replies...Marc's answer concerning Newtonian and Einsteinian physics was hilarious. Will try out the suggested methods and let u know. Thanks once again.
I code at Will!
Hi! I have installed daemon-tools and have a virtual drive. I need my C# program to list all my physical disk-drives and not virtual ones. So far, I could do the following [DllImport("kernel32.dll")] public static extern DriveType GetDriveType([MarshalAs(UnmanagedType.LPStr)] string lpRootPathName); ----and in the code---- string[] allDrives = Directory.GetLogicalDrives(); for (int i = 0; i < allDrives.Length; i++) { if ((GetDriveType(allDrives[i]) & DriveType.CDROM) == DriveType.CDROM) { Console.WriteLine(allDrives[i]); } } It lists my physical disk-drives as well as virtual ones. Any suggestions how to go about enumerating only the physical ones? Thanks.
I code at Will!