Jump to content

Recommended Posts

Posted

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.

Posted

heh, built in function.

*Bangs head on table*

Of course I can use this function. Looked all over except help file.

Thanks!

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

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
×
×
  • Create New...