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

Description: 

Returns the version number of a specified file.

Format : 

objectOfFileSystemObject. GetFileVersion (filespec)

objectOfFileSystemObject : As the name says, it’s a FileSystemObject.

Arguments: 
    • filespec
      • Mandatory
      • Type:     String
      • Specific file path

Function FnGetFileVersion(strSpecificFilePath)

    Set fso = CreateObject("Scripting.FileSystemObject")

    file = fso.GetFileVersion(strSpecificFilePath)

   FnGetFileVersion = file

End Function

 

Msgbox  FnGetFileVersion (“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: