/
File_GetVersion
File_GetVersion
Description
Returns the version of the specified file
Syntax
File_GetVersion(sFile, bMustExist) As Boolean
Parameters
sFile (String)
Filename
bMustExist (Boolean)
File must exist
Return value
Result will be stored in gsValue. Function will return false if file does not exist and bMustExist is true
Example
VBScript
If bStatus Then bStatus = File_GetVersion(gsProgramFiles & "\CapaInstaller\Agent\CIAgent.exe", True) If bStatus Then bStatus = Job_Writelog("Custom", "Current version of CIAgent.exe is : " & gsValue, bStatus, True)
Related functions
File_GetFileDateCreated File_GetSecurity File_GetShortPath
, multiple selections available,
Related content
File_WaitWhileExist
File_WaitWhileExist
More like this
Sys_GetSerialNumber
Sys_GetSerialNumber
More like this
File_WaitForFileToExist
File_WaitForFileToExist
More like this
$cs.Reg_GetString
$cs.Reg_GetString
More like this
CMS_GetPackageStatus
CMS_GetPackageStatus
More like this
$cs.Shell_Execute
$cs.Shell_Execute
More like this