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
  1. Home
  2. General Programming
  3. C#
  4. Problem while Drive Listing

Problem while Drive Listing

Scheduled Pinned Locked Moved C#
helpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cyberf
    wrote on last edited by
    #1

    Hi! i'm trying to list drives on pc. i used System.Management namespace for this purpose. But i don't want to hear the disgusting noise while listing A: drive. Does anyone help me?

    K A 2 Replies Last reply
    0
    • C cyberf

      Hi! i'm trying to list drives on pc. i used System.Management namespace for this purpose. But i don't want to hear the disgusting noise while listing A: drive. Does anyone help me?

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      If you are using .net 2.0 you can use the new driveinfo class. There is a getdrives method. That doesn't appear to make the A: drive make noise. If you are using .net 1.1 I guess you could always disable your a: in the bios or something. Hope that helps. Ben

      1 Reply Last reply
      0
      • C cyberf

        Hi! i'm trying to list drives on pc. i used System.Management namespace for this purpose. But i don't want to hear the disgusting noise while listing A: drive. Does anyone help me?

        A Offline
        A Offline
        althamda
        wrote on last edited by
        #3

        I'm not sure if this will help you. string[] drives = Environment.GetLogicalDrives();

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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