How to detect using c# if a pendrive is plugged into a USB port?
[Assuming Windows, given the C# remark. Please tag accordingly] Yes, this is possible. And it is possible to get the details of the file. It will require programming, though. Watch for WM_DEVICECHANGE and re-enumerate drives afterwards. It will get you USB pendrives, but also SD cards. I expect that’s a bonus for you. To get … Read more