Home > Language Reference > File Functions > FileVersion$

FileVersion$

The FileVersion$ function returns the version number of the specified file.

Usage

Used to know if a file version has changed.

Syntax

var$=FileVersion$(<filename>)

Parameters

<filename>, string, name of the file. 
 

Return value

var$, string, version number of the specified file. Using Windows interface, you can see the version of a file by right clicking it in Explorer, select Properties and select Version Tab. If Version Tab is not available or if <filename> is empty or does not exist, the return value is an empty string (an empty string is ""). 

See also

FileDate$
FileSize
FileTime$
FileAttr$

Example

a$=FileVersion$("c:\wttest\myfile.txt")