Home All Groups Group Topic Archive Search About

USB disk detection and formatting

Author
15 Jan 2006 12:30 AM
Paul Taylor
Hi there,

I'm trying to format a USB flash drive from a VB.NET application but can't
seem to find a (simple) way of doing so.  Also, ideally I'd be able to
detect the insertion of the USB drive - though this isn't necessary.

I've found the SHFormatDrive VB function, but that only seems to work for
floppy drives.  Is there something out there that can help?

Thanks in advance

Paul Taylor

Author
15 Jan 2006 1:59 AM
Ken Tucker [MVP]
Hi,

        Not sure about the formatting but here are a couple of examples of
how to be notified on device insert.

http://www.vb-tips.com/default.aspx?ID=0473ec0b-ae66-47a4-aaee-700b414ef215

http://www.vb-tips.com/default.aspx?ID=e6f103d1-1c0d-4d89-a2a0-f3826480a706

Ken
---------------
Show quoteHide quote
"Paul Taylor" <paultay***@dsl.pipex.com> wrote in message
news:43c99794$0$63062$ed2e19e4@ptn-nntp-reader04.plus.net...
> Hi there,
>
> I'm trying to format a USB flash drive from a VB.NET application but can't
> seem to find a (simple) way of doing so.  Also, ideally I'd be able to
> detect the insertion of the USB drive - though this isn't necessary.
>
> I've found the SHFormatDrive VB function, but that only seems to work for
> floppy drives.  Is there something out there that can help?
>
> Thanks in advance
>
> Paul Taylor
>