IncrementMinorFileVersion |
Top Previous Next |
The IncrementMinorFileVersion Special Function Command allows you to retrieve the incremented Minor part of the version number of the specified file formatted as a string. Important: Special Function commands can only be used on the right hand side of a Variable Assignment command. Command Syntax
IncrementMinorFileVersion,[FullyQualifiedFileName]
The comma character after the command is compulsory as is the file name parameter.
Parameters:
TargetFileName: The fully qualified path and file name of the file from which to retrieve the version information.
The parameter is compulsory. If any required parameter is missing or invalid an error will be thrown. The parameter must be surrounded by quotation marks if one or more spaces are included in the path and file name. It is good practice to include the quotation marks in any case, so that it reduces the risk of error when writing scripts.
Example:
Retrieve the version number of the installed version of Windows Media Player
Var:Version=IncrementMinorFileVersion,"C:\Program Files (x86)\Windows Media Player\wmplayer.exe"
See Also: Special Functions GetBuildFileVersion GetFileNameVersion GetFileVersion GetMajorFileVersion GetRevisionFileVersion GetRegistryValue
|