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. Watching for Removeable Drives

Watching for Removeable Drives

Scheduled Pinned Locked Moved C#
comadobetoolsquestion
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.
  • J Offline
    J Offline
    Jammer 0
    wrote on last edited by
    #1

    Hi All, I'm trying to find some info on watching for new drives being plugged into the system. The normal kind of drives like Firewire, USB drives, flash sticks, eSata etc. The FileSystemWatcher seems to only support watching an existing drive. Would WMI be the place to go for this? Cheers,

    Jammer My Blog | Article(s)

    L N 2 Replies Last reply
    0
    • J Jammer 0

      Hi All, I'm trying to find some info on watching for new drives being plugged into the system. The normal kind of drives like Firewire, USB drives, flash sticks, eSata etc. The FileSystemWatcher seems to only support watching an existing drive. Would WMI be the place to go for this? Cheers,

      Jammer My Blog | Article(s)

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      search CodeProject for WM_DEVICECHANGE :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


      1 Reply Last reply
      0
      • J Jammer 0

        Hi All, I'm trying to find some info on watching for new drives being plugged into the system. The normal kind of drives like Firewire, USB drives, flash sticks, eSata etc. The FileSystemWatcher seems to only support watching an existing drive. Would WMI be the place to go for this? Cheers,

        Jammer My Blog | Article(s)

        N Offline
        N Offline
        Nilesh Hapse
        wrote on last edited by
        #3

        Check this: Detecting Hardware Insertion and/or Removal[^]

        "Legacy code" often differs from its suggested alternative by actually working and scaling. —Bjarne Stroustrup

        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