Search found 1 match

by bsvalastoga
Fri Jan 26, 2018 5:38 am
Forum: Scripting
Topic: usb detection
Replies: 1
Views: 5590

Re: usb detection

Hi.
Here is how I do it:

bool UsbPresent = Directory.Exists("\\Hard Disk");
if( !UsbPresent)
{
MessageBox.Show("USB not inserted");
}