Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)

like image 649
ajma Avatar asked Apr 03 '09 21:04

ajma


1 Answers

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

like image 176
Powerlord Avatar answered Oct 02 '22 08:10

Powerlord