Home All Groups Group Topic Archive Search About

Backup to USB driver?

Author
24 Jul 2006 8:34 PM
Anthony
Hi All,

   I am trying to write a program to do a automatic backup. I have some
questions.
   1. How can I detect a USB drive connection?
   2. How can I get the drive letter?(If everytime is given a different
drive letter)

Anthony

Author
24 Jul 2006 10:06 PM
Jeff Gaines
On 24/07/2006 Anthony wrote:

>Hi All,
>
>    I am trying to write a program to do a automatic backup. I have some
>questions.
>    1. How can I detect a USB drive connection?
>    2. How can I get the drive letter?(If everytime is given a different
>drive letter)
>
>Anthony

Are you using NET 2? If so look at the DriveInfo class, it can give you an
array of drives and each of them has a DriveType.

--
Jeff Gaines

AddThis Social Bookmark Button