Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Re: usb detection
PostPosted: Fri Jan 26, 2018 5:38 am 

Joined: Fri Sep 06, 2013 3:01 am
Posts: 1

Offline
Hi.
Here is how I do it:

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


 Profile  
 
 Post subject: Re: usb detection
PostPosted: Tue Feb 13, 2018 3:47 pm 

Joined: Mon Nov 20, 2017 5:29 pm
Posts: 43

Offline
Very nice script! Simple and effective.

_________________
Thanks,

Chris
Beijer Support
(801)708-6690


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: