VBScript » FileSystemObject » GetFileVersion

Version: 2.0

Syntax:
object.GetFileVersion(path)

This method is used to return the version of the file in the specified path.

If the supplied path string doesn't end with a file, the GetFileVersion method will return an empty string. Not all files have a version attribute and these files will also return an empty string.

Note that this method doesn't check the existance or the validity of the supplied path.

Examples

Code:
<%
dim filesys, a
Set filesys = CreateObject("Scripting.FileSystemObject")
filesys.CreateTextFile "c:\DevGuru\website\VBScript.txt", True
a = filesys.GetFileVersion("c:\DevGuru\website\VBScript.txt")
Response.Write (a)
%>
Output:
""