Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

c3csystems

@c3csystems
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Differentiate between virtual drive and physical drive
    C c3csystems

    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!

    The Lounge csharp tools tutorial question

  • Differentiate between virtual drive and physical drive
    C c3csystems

    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!

    The Lounge csharp tools tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups