Re: usb detection
Posted: Fri Jan 26, 2018 5:38 am
Hi.
Here is how I do it:
bool UsbPresent = Directory.Exists("\\Hard Disk");
if( !UsbPresent)
{
MessageBox.Show("USB not inserted");
}
Here is how I do it:
bool UsbPresent = Directory.Exists("\\Hard Disk");
if( !UsbPresent)
{
MessageBox.Show("USB not inserted");
}