Search code examples
c#windows-vistausb-drive

Looking for C# code for detecting removable drive (usb flash)


I'm looking for a C# code snippet to give me a notification for when a USB drive is plugged into my PC in Windows Vista (or win7)


Solution

  • There's a class called DriveDetector over at Codeproject that sounds like it does what you want.