ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to format derive

Hi
 
In my application, i have to test a USB drive programmatically. For testing i am first writting a file to the USB drive and then reading the same file back. But before writting the file first time, i have to format the file.
 
I am using Labview 8.0
 
Please let me know how to format a USB drive using Labview.
 
Regards
R
0 Kudos
Message 1 of 4
(2,977 Views)

Hi R

i think the format.com is a "normal" program which you can call from LabView using SystemExec.vi.

Mike

0 Kudos
Message 2 of 4
(2,972 Views)

Hi Mike

Thanks for your reply. I had tried to format the USB drive with format.com. But it is not working. Please tell  me, is there any other metod of doing it ?...Like calling a Window API etc.

Please reply as soon as possible

Regards

R

0 Kudos
Message 3 of 4
(2,926 Views)

Hi

i found this link: http://www.oehive.org/node/452

According to that there is a function (SHFormatDrive) in the shell32.dll to format a hard drive.

Hope it helps.

Mike

0 Kudos
Message 4 of 4
(2,905 Views)