FILE_GetVersion
<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > File > FILE: functions working on files > FILE_GetVersion |
Description
Returns the file version component of a given file name.
Syntax
n = File_GetVersion(sFileName, nComponent)
Returns
Returns a number
The requested component file version.
Parameters
Name |
Type |
Optional |
Meaning |
sFileName |
String |
No |
The full file name (path + file name) of the file you want to get info |
nComponent |
Number |
No |
A value that indicate witch file version component is required. It can be one of following:
%FILE_MAJORVERSION %FILE_MINORVERSION %FILE_BUILDVERSION %FILE_REVISIONVERSION |
Remarks
Restrictions
See also
File Module, File_GetVersionString
Examples
MsgBox 0, File_GetVersion("c:\windows\explorer.exe", %FILE_MAJORVERSION)
'result can be 6