Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Programmatically get disk format type (from flash drive)


  • Please log in to reply
2 replies to this topic

#1 Myicq

Myicq

    Universalist

  • Active Members
  • PipPipPipPipPip
  • 271 posts

Posted 07 September 2012 - 10:21 AM

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 ?







#2 JFX

JFX

    Polymath

  • Active Members
  • PipPipPipPip
  • 227 posts

Posted 07 September 2012 - 10:29 AM

why no use DriveGetFileSystem ?
  • Myicq likes this

#3 Myicq

Myicq

    Universalist

  • Active Members
  • PipPipPipPipPip
  • 271 posts

Posted 07 September 2012 - 10:57 AM

heh, built in function.
*Bangs head on table*

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

Thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users