GetFileVersion Method

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

FileInformation.GetFileVersion ( val)

Return Value

Boolean

Returns True if the file has a file version. Otherwise, returns False.

Purpose

Obtains the version of the file. The method returns True if the file has a file version. Otherwise it returns False.

Remarks

Generally, the file version is the version or revision of the file. The method returns the PropertyObjectFile.Version property value for TestStand files, the revision from a LabVIEW VI, and file version value in the resource of DLL and executable files.

The version number usually appears in the MajorVersion.MinorVersion.RevisionVersion format, such as 1.0.2.

This method throws an exception if the file cannot be located when it is first accessed. Use the FileExists property to determine whether the file is available.

Parameters

val As String

[Out] Returns the version of the file. If no version is available, the method returns an empty string.


See Also

FileInformation.FileExists

FileInformation.GetFileFormatVersion

PropertyObjectFile.Version

WAS THIS ARTICLE HELPFUL?

Not Helpful