next up previous contents
Next: MCI Object Up: Methods Previous: setDesktopWallpaper   Contents


getFileVersionInfo

Description

Gets the version information of the specified file.


Syntax

Shell.getFileVersionInfo(filename)


Parameters

filename
String. Specifies the full pathname of the file.


Returns

Returns an object contains following properties if successful:

Name Description
comments Contains any additional information about the file
companyName Identifies the company that produced the file
fileDescription Describes the file
fileVersionNum Integer. Identifies the version of this file
fileVersion Identifies the version of this file
internalName Identifies the file's internal name
legalCopyright Describes all copyright notices, trademarks, and registered trademarks that apply to the file
legalTrademarks Describes all trademarks and registered trademarks that apply to the file
originalFilename Identifies the original name of the file, not including a path
privateBuild Describes by whom, where, and why this private version of the file was built
productName Identifies the name of the product with which this file is distributed
productVersionNum Integer. Identifies the version of the product with which this file is distributed
productVersion Identifies the version of the product with which this file is distributed
specialBuild Describes how this version of the file differs from the normal version. If failed, returns null.


Example

var x = Shell.getFileVersionInfo(
    "c:\\WINNT\\system32\\Macromed\\Flash\\flash.ocx");
trace("Comments: " + x.comments);
trace("CompanyName: " + x.companyName);
trace("FileDescription: " + x.fileDescription);
trace("FileVersion: " + x.fileVersion);
trace("InternalName: " + x.internalName);
trace("LegalCopyright: " + x.legalCopyright);
trace("LegalTrademarks: " + x.legalTrademarks);
trace("OriginalFilename: " + x.originalFilename);
trace("PrivateBuild: " + x.privateBuild);
trace("ProductName: " + x.productName);
trace("ProductVersion: " + x.productVersion);
trace("SpecialBuild: " + x.specialBuild);



next up previous contents
Next: MCI Object Up: Methods Previous: setDesktopWallpaper   Contents
Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.