LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to copy and format a disk from CVI application

Only success so far is to call DOS command using a script which is not satisfactory. This is for a military application where the user will select the drive letter and disk label from a predetermined list in a CVI panel with the application. (Getting the user to format the disk via the Windows control is not satisfactory.)

Thanks for any help!
0 Kudos
Message 1 of 2
(2,845 Views)
If you have the windows SDK, do a search for "File Functions". This will give you a few ideas.

Also, depends if you really want to do a format or just wipe the disk (delete of all files and directorys).

I think a format is a low level driver function (i.e. its calls the driver for the device (HDD / FDD) and that performs the format. Whereas, operations like delete are handled via the OS.

I am checking a few sources of C Libs that I have to see if there is an easier way of doing this.

If you don't have WinSDK, let me know and I shall try and send the relevant info to you,

Regards

Chris
0 Kudos
Message 2 of 2
(2,845 Views)