Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Contact us
Hide Buttons

FileSystemObject : GetFileVersion Method


Returns the ver­sion num­ber of a spec­i­fied file.

Format : 

objectOf­FileSys­te­mOb­ject. Get­FileVer­sion (filespec)

objectOf­FileSys­te­mOb­ject : As the name says, it’s a FileSystemObject.

    • file­spec
      • Manda­tory
      • Type:     String
      • Spe­cific file path

Function FnGetFileVersion(strSpecificFilePath)

    Set fso = CreateObject("Scripting.FileSystemObject")

    file = fso.GetFileVersion(strSpecificFilePath)

   FnGetFileVersion = file

End Function


Msg­box  FnGet­FileVer­sion (“c:\New Folder\file.txt”)


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: