Method: GetFileVersion for FileSystemObject
- Updated2024-09-12
- 1 minute(s) read
FileSystemObject and Dictionary > Methods > Method: GetFileVersion for FileSystemObject
Method: GetFileVersion for FileSystemObject
Specifies the version number of a file.
sGetFileVersion = Object.GetFileVersion(FileName)
| Object | FileSystemObject Object with this method |
| FileName | String Specifies the filename. |
| sGetFileVersion | String Receives the version number of the file. |
The following example specifies the version number of a file:
Function FileVersion(sFile) Dim fso Set fso = CreateObject("Scripting.FileSystemObject") FileVersion = fso.GetFileVersion(sFile) End Function