Navigation:  thinBasic Modules > File >

FILE_GetVersion

Previous pageReturn to chapter overviewNext page

 

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