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

前端 未结 3 1317
深忆病人
深忆病人 2020-12-03 23:51

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)

3条回答
  •  囚心锁ツ
    2020-12-03 23:54

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

提交回复
热议问题