Retrieves the version of a file.
FileGetVersion, OutputVar [, Filename] |
Parameters
OutputVar | The name of the variable in which to store the version number/string. |
Filename | The name of the target file, which is assumed to be in %A_WorkingDir% if an absolute path isn't specified. If omitted, the current file of the innermost enclosing File-Loop will be used instead. |
ErrorLevel
ErrorLevel is set to 1 if there was a problem or 0 otherwise.
Remarks
Most non-executable files (and even some EXEs) won't have a version, and thus the OutputVar will be blank in these cases.
Related
FileGetAttrib, FileSetAttrib, FileGetTime, FileSetTime, FileGetSize, File-loop
Example
FileGetVersion, version, C:\My Application.exe
FileGetVersion, version, %ProgramFiles%\AutoHotkey\AutoHotkey.exe