Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Returns the version of the specified file

 


Syntax

File_GetVersion(sFile, bMustExist) As Boolean 


Parameters

sFile (String)

Filename

...

Result will be stored in gsValue. Function will return false if file does not exist and bMustExist is true

 


Example

Code Block
languagevb
themeEclipselanguagevb
titleVBScript
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)

Scripting Guidelines


Related functions

File_GetFileDateCreated File_GetSecurity File_GetShortPath