How to read file Version?

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts Page 1 of 1
Contributors
User avatar
MoDy kareem
New Member
New Member
Posts: 21
Joined: Fri Jan 15, 2010 3:43 pm

How to read file Version?
MoDy kareem
Hello,
am working on a auto updater, and the updater will check the version of 3 files. How can i read the file version ???

Thanks!
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: How to read file Version?
mandai
It depends which type of files you are checking.
For exe/dll files you could check with FileVersionInfo.GetVersionInfo.

Otherwise you could possibly compare the last download/install time.
User avatar
MoDy kareem
New Member
New Member
Posts: 21
Joined: Fri Jan 15, 2010 3:43 pm

Re: How to read file Version?
MoDy kareem
mandai wrote:
It depends which type of files you are checking.
For exe/dll files you could check with FileVersionInfo.GetVersionInfo.

Otherwise you could possibly compare the last download/install time.

yes its Dll and exe files .. can you give me code ??
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: How to read file Version?
mandai
You could use this:
Code: Select all
        Dim fvo As FileVersionInfo = FileVersionInfo.GetVersionInfo("test.exe")
        MsgBox(fvo.FileVersion)
4 posts Page 1 of 1
Return to “Coding Help & Support”