usb detection

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
bsvalastoga
Posts: 1
Joined: Fri Sep 06, 2013 3:01 am

Re: usb detection

Post by bsvalastoga »

Hi.
Here is how I do it:

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

User avatar
Chris T.
Posts: 109
Joined: Mon Nov 20, 2017 5:29 pm

Re: usb detection

Post by Chris T. »

Very nice script! Simple and effective.
Best regards,
Christopher
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply