View Single Post
Old 06-24-2009   #2 (permalink)
Richard Mueller [MVP]


 
 

Re: How to get the file version value


"Gavaskar" <nospam@xxxxxx> wrote in message
news:e7cM%23aP9JHA.1880@xxxxxx
Quote:

> Hello
>
> How do I get the value of the file version or product version property of
> a file in a VB script?
>
> thanks
>
A method using the FileSystemObject is demonstrated in this link:

http://www.microsoft.com/technet/scr.../stfivb14.mspx

Another method using WMI is demonstrated here:

http://www.microsoft.com/technet/scr.../stfivb13.mspx

You only need the Version property of the objFile object. Note where the
file name is specified in the query, with backslashes in the path doubled.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec