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.
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
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!
am working on a auto updater, and the updater will check the version of 3 files. How can i read the file version ???
Thanks!
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.
For exe/dll files you could check with FileVersionInfo.GetVersionInfo.
Otherwise you could possibly compare the last download/install time.
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 ??
You could use this:
Code: Select all
Dim fvo As FileVersionInfo = FileVersionInfo.GetVersionInfo("test.exe")
MsgBox(fvo.FileVersion)
4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023