DIAdem Help

Method: GetFileVersion for FileSystemObject

  • Updated2024-09-12
  • 1 minute(s) read

Method: GetFileVersion for FileSystemObject

Specifies the version number of a file.

sGetFileVersion = Object.GetFileVersion(FileName)
ObjectFileSystemObject
Object with this method
FileNameString
Specifies the filename.
sGetFileVersionString
Receives the version number of the file.

The following example specifies the version number of a file:

Function FileVersion(sFile)
  Dim fso
  Set fso = CreateObject("Scripting.FileSystemObject")
  FileVersion = fso.GetFileVersion(sFile)
End Function

Log in to get a better experience