Hi.
Here is how I do it:
bool UsbPresent = Directory.Exists("\\Hard Disk");
if( !UsbPresent)
{
MessageBox.Show("USB not inserted");
}
Search found 1 match
- Fri Jan 26, 2018 5:38 am
- Forum: Scripting
- Topic: usb detection
- Replies: 1
- Views: 5590