Does anyone know a quick and easy way, without adding any new dependencies, to get the version of a specific file? Thanks.
Printable View
Does anyone know a quick and easy way, without adding any new dependencies, to get the version of a specific file? Thanks.
If it's your application it's easy:
app.Major
app.Minor
app.Revision
append them in that order with periods and you get
4.30.32
in the properties dialog when you right click on a file in explorer it would look like this:
4.30.0032
If you want the version of some other app you'll need to do a couple api calls, which I don't know off hand. I'll post them in a few if someone else doesn't.
WOW, it has more than just a couple api calls and it's too big to paste here but here's the link
http://www.vbapi.com/ref/v/verqueryvalue.html
It has a copy and paste example you can just put in your code.
[Edited by Glacius Cool on 08-31-2000 at 09:25 PM]