Is it possible to get notified (without polling, but via an event) when a drive letter becomes accessible. For example if you have an external hard drive that always appears as drive F – is it possible to have an event raised when that is connected and F becomes accessible?
Share
Okay.. found what I was looking for 🙂
Take a look at this VBScript: (source):
I leave it to your exercise to port it to C#.
Instead of polling all the time you can use a WMI event sink.