Jump to content

Programmatically get disk format type (from flash drive)


Myicq
 Share

Recommended Posts

Can I programmatically (example / UDF) would be nice read disk format type, of a given disk ? Reason is that a customer must write data to a CF card, which MUST be in FAT format, not FAT32 or NTFS. Otherwise the embedded old controller can't read data.

Customer can be expected to be too stupid to find out this himself.

So can I do this:

; return "FAT", "FAT32", "NTFS" or "other"
$formatType = _GetVolumeFormat("K")
if ($formatType = "FAT") then
   ; OK
else
   ; Complain
endif

I looked at WinAPIEx: getVolumeInformation, but it does not appear to return formatting info.

[http://msdn.microsoft.com/en-us/library/windows/desktop/aa364993%28v=vs.85%29.aspx]

Can I calculate that from returned info here ?

I am just a hobby programmer, and nothing great to publish right now.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...