getFileVersion

mobase.getFileVersion(filepath)

Retrieve the file version of the given executable.

Return type:

str

Parameters:

filepath – Absolute path to the executable.

Returns:

The file version, or an empty string if the file version could not be retrieved.