FileDescription Property

Applies to TestComplete 15.64, last modified on May 16, 2024


Use the FileDescription property to get the file description that is presented to the users.



Read-Only Property String
aqFileVersionInfoObj An expression, variable or parameter that specifies a reference to an aqFileVersionInfo object
Index [in]    Optional    Integer Default value: 0   

Applies To

The property is applied to the following object:


The property has the following parameter:


A file can contain multiple version information blocks translated in different languages. This parameter specifies a zero-based index of the desired version information translation, among those included in the file. The default value is 0, which means the default version information block. To get the total number of version information translations in a file, use the Languages property.

Property Value

A string that contains the file description.


If you use Python or DelphiScript, you should enclose the parameter of the FileDescription property in square brackets: FileDescription[Index].


The sample script below obtains additional information about Notepad:

JavaScript, JScript

function FileVersionInfoSample()
  var FileName = Sys.OSInfo.WindowsDirectory + "\\notepad.exe";
  var VerInfo = aqFileSystem.GetFileInfo(FileName).VersionInfo;

  Log.Message("Description: " + VerInfo.FileDescription);
  Log.Message("Comments: " + VerInfo.Comments);
  Log.Message("Company: " + VerInfo.CompanyName);


def FileVersionInfoSample():
  FileName = Sys.OSInfo.WindowsDirectory + "\\notepad.exe"
  VerInfo = aqFileSystem.GetFileInfo(FileName).VersionInfo
  Log.Message("File version: " + str(VerInfo.FileMajorVersion) + "." + str(VerInfo.FileMinorVersion) + "." + str(VerInfo.FileBuildVersion) + "." + str(VerInfo.FileRevisionVersion))
  Log.Message("Description: " + str(VerInfo.FileDescription[0]))
  Log.Message("Product: " + str(VerInfo.ProductName[0]))
  Log.Message("Company: " + str(VerInfo.CompanyName[0]))


Sub FileVersionInfoSample
  Dim FileName, VerInfo

  FileName = Sys.OSInfo.WindowsDirectory & "\notepad.exe"
  Set VerInfo = aqFileSystem.GetFileInfo(FileName).VersionInfo

  Log.Message "Description: " & VerInfo.FileDescription
  Log.Message "Comments: " & VerInfo.Comments
  Log.Message "Company: " & VerInfo.CompanyName
End Sub


procedure FileVersionInfoSample;
var FileName, VerInfo;
  FileName := Sys.OSInfo.WindowsDirectory + '\notepad.exe';
  VerInfo := aqFileSystem.GetFileInfo(FileName).VersionInfo;

  Log.Message('Description: ' + VerInfo.FileDescription);
  Log.Message('Product: ' + VerInfo.ProductName);
  Log.Message('Company: ' + VerInfo.CompanyName);

C++Script, C#Script

function FileVersionInfoSample()
  var FileName = Sys["OSInfo"]["WindowsDirectory"] + "\\notepad.exe";
  var VerInfo = aqFileSystem["GetFileInfo"](FileName)["VersionInfo"];

  Log["Message"]("Description: " + VerInfo["FileDescription"]);
  Log["Message"]("Comments: " + VerInfo["Comments"]);
  Log["Message"]("Company: " + VerInfo["CompanyName"]);

See Also

Comments Property
Languages Property

Highlight search results