【发布时间】:2011-08-29 14:52:06
【问题描述】:
可能重复:
Looking for C# code for detecting removable drive (usb flash)
System.IO.FileSystemWatcher 类如何用于检测 Windows 下连接/断开的驱动器(例如 F:)?如果这不可能,还有哪些其他的事件驱动方式(除了轮询DriveInfo.GetDrives())?
提前致谢。
【问题讨论】:
-
StackOverflow 摇滚:stackoverflow.com/questions/715739/…
标签: c# .net windows filesystemwatcher