473,463 Members | 1,508 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

USB disk detection and formatting

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
Jan 15 '06 #1
1 3776
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?...e-700b414ef215

http://www.vb-tips.com/default.aspx?...0-f3826480a706

Ken
---------------
"Paul Taylor" <pa********@dsl.pipex.com> wrote in message
news:43***********************@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

Jan 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: | last post by:
Hello, I am trying to write a program that will have an option to either format a disk in the A drive, or delete all the contents on it. I've tried sing the shell command, and other variations of...
60
by: Fotios | last post by:
Hi guys, I have put together a flexible client-side user agent detector (written in js). I thought that some of you may find it useful. Code is here: http://fotios.cc/software/ua_detect.htm ...
6
by: Gustav Medler | last post by:
Hello, there is a known problem with Opera and the execution of content shown in <NOSCRIPT> tag. Everythings works fine, if there is only one simple script like:...
0
by: FabioDag | last post by:
Does someone have a piece of .NET code for partitioning and formatting an hard-disk? Thanks, Fabio
8
by: R. Smits | last post by:
I've have got this script, the only thing I want to be changed is the first part. It has to detect IE version 6 instead of just "Microsoft Internet Explorer". Can somebody help me out? I tried...
7
by: mosaic | last post by:
Hi, all I really interested in how to check the memory leak of a program. Your smart guys, do you have excellent ideas that could share with me? Thank you. The following is my idea: In C...
3
by: jesmi | last post by:
hi all!! i need to format my computer.please provide me detailed steps for formatting computer. thanks in advance jesmi
0
by: origami.takarana | last post by:
Intrusion Detection Strategies ----------------------------------- Until now, we’ve primarily discussed monitoring in how it relates to intrusion detection, but there’s more to an overall...
10
by: Conrad Lender | last post by:
In a recent thread in this group, I said that in some cases object detection and feature tests weren't sufficient in the development of cross-browser applications, and that there were situations...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.