Skip to main content

TrFile_GetFileKind (function reference)

By January 26, 2021August 18th, 2022Online Help, Troi File Plug-in
Troi File Plug-in > Functions reference > TrFile_GetFileKind
Troi File Plug-in for FileMaker Pro


Returns a (localized) description of what kind of file this is

SyntaxFunction badge

TrFile_GetFileKind ( switches ; filePath )


switches not used, reserved for future use. Leave blank or put "-Unused"
filePath the path to the file for which you want the description

Returned Result

Data type returned



Returns a (localized) description of what kind of file this is.

If an error occurs it will start with 2 dollars, followed by the error code. Returned error codes can be:

$$-43 fnfErr source file not found
$$-50 paramErr parameter error

Other errors may be returned.

Originated in

Troi File Plug-in 12.1


FileMaker Pro 16 to 19


The description will be returned in the current system language. Also note that the resulting description can be slightly different depending on platform, installed applications and OS version.

You can also use FileMaker styled paths, like “filewin:/C:/MyFiles/test.txt”.


Set Variable [ $Kind ; TrFile_GetFileKind ( "-Unused" ; "filemac:/KES/" ) ]

This will return “ZIP Archive” or similar.

Set Variable [ $resultTxt ; TrFile_GetFileKind ( "-Unused" ; "C:\myDatabase.fmp12" ) ]

This will return “FileMaker Pro Database” on Windows and “FileMaker Document” on macOS (with an English OS).

Used in example file


Related functionsFunction badge


Related topics

Troi File Plug-in online help (overview)

Online Help Page for Troi File Plug-in for 16 to 19 –> TrFile_GetFileKind (filep4326) 2022-0818 16:47:26