Sign in to follow this  
Followers 0

Programmatically get disk format type (from flash drive)

3 posts in this topic

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 ?

Share this post


Link to post
Share on other sites



Posted

why no use DriveGetFileSystem ?

1 person likes this

Share this post


Link to post
Share on other sites

Posted

heh, built in function.

*Bangs head on table*

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

Thanks!

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.