寻找C#code检测可移动驱动器(USB闪存) [英] Looking for C# code for detecting removable drive (usb flash)
本文介绍了寻找C#code检测可移动驱动器(USB闪存)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在寻找一个C#code片段来给我当USB驱动器插入我的电脑在Windows Vista(或WIN7)
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)
推荐答案
有一个类调用 DriveDetector < /这听起来像它>在超过$ C $的CProject你想要做什么。
There's a class called DriveDetector over at Codeproject that sounds like it does what you want.
这篇关于寻找C#code检测可移动驱动器(USB闪存)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文