Home All Groups Group Topic Archive Search About

Need to get file Version

Author
2 Jun 2006 3:31 AM
Jack
Hello,

I need to get the file version for a file.  I am looking for the same
version shown when you right-click and use properties to view file version.

Thanks in advance for any help,

Jacky

Author
2 Jun 2006 5:40 AM
Cor Ligthert [MVP]
Jack,

I tried it with a txt file in explorer, but did not see any kind of version,
are you sure that it is in every file?

Cor

Show quoteHide quote
"Jack" <jo***@webfoxmail.com> schreef in bericht
news:%23FDbTUfhGHA.4404@TK2MSFTNGP05.phx.gbl...
> Hello,
>
> I need to get the file version for a file.  I am looking for the same
> version shown when you right-click and use properties to view file
> version.
>
> Thanks in advance for any help,
>
> Jacky
>
Author
2 Jun 2006 6:00 AM
Mattias Sjögren
>I need to get the file version for a file.  I am looking for the same
>version shown when you right-click and use properties to view file version.

For executable files you can use the FileVersionInfo class.


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
2 Jun 2006 10:44 PM
Herfried K. Wagner [MVP]
"Jack" <jo***@webfoxmail.com> schrieb:
> I need to get the file version for a file.  I am looking for the same
> version shown when you right-click and use properties to view file
> version.

'System.Diagnostics.FileVersionInfo'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
5 Jun 2006 2:50 AM
Jack
Thanks!!!!
Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:Od0dXYphGHA.2208@TK2MSFTNGP05.phx.gbl...
> "Jack" <jo***@webfoxmail.com> schrieb:
>> I need to get the file version for a file.  I am looking for the same
>> version shown when you right-click and use properties to view file
>> version.
>
> 'System.Diagnostics.FileVersionInfo'.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>