Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

DesktopMime.FromFile (gb.desktop)

Static Function FromFile ( Path As String ) As DesktopMime

  • Path

Creates a DesktopMime object from the given file Path

Example, get a files mimetype..
Public Sub GetMimeType(sFilePath As String) As String

  Dim hMime As DesktopMime

  hMime = DesktopMime.FromFile(sFilePath)

  Return hMime.Type

End