By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,192 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

Getting version of an exe file with out loading assembly

P: n/a
If you want to read in the description/version/copyright of a file (any not
necessarly a .NET one) how would you do this? I just want to list all the
files in a directory and their version numbers if they have one thanks
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
In article <e#**************@TK2MSFTNGP11.phx.gbl>, Brian Henry wrote:
If you want to read in the description/version/copyright of a file (any not
necessarly a .NET one) how would you do this? I just want to list all the
files in a directory and their version numbers if they have one thanks


You might want to have a look at the System.IO.FileInfo class...

--
Tom Shelton [MVP]
Nov 21 '05 #2

P: n/a
In article <e#**************@TK2MSFTNGP11.phx.gbl>, Brian Henry wrote:
If you want to read in the description/version/copyright of a file (any not
necessarly a .NET one) how would you do this? I just want to list all the
files in a directory and their version numbers if they have one thanks


Ooops! You wanted the file version info... You want to look at
System.Diagnostics.FileVersionInfo class :)

Imports System.Diagnostics

Dim versionInfo As FileVersionInfo = _
FileVersionInfo.GetVersionInfo ("myfile path")

Console.WriteLine (versionInfo.FileVersion)
--
Tom Shelton [MVP]
Nov 21 '05 #3

P: n/a
I'm not seeing anything in it's members that deal with the comments, version
number, title, description or copyright of a file in the file info class...
"Tom Shelton" <to*@YOUKNOWTHEDRILLmtogden.com> wrote in message
news:uT**************@TK2MSFTNGP09.phx.gbl...
In article <e#**************@TK2MSFTNGP11.phx.gbl>, Brian Henry wrote:
If you want to read in the description/version/copyright of a file (any
not
necessarly a .NET one) how would you do this? I just want to list all the
files in a directory and their version numbers if they have one thanks


You might want to have a look at the System.IO.FileInfo class...

--
Tom Shelton [MVP]

Nov 21 '05 #4

P: n/a
thanks! that was what it needed

"Tom Shelton" <to*@YOUKNOWTHEDRILLmtogden.com> wrote in message
news:Op**************@TK2MSFTNGP09.phx.gbl...
In article <e#**************@TK2MSFTNGP11.phx.gbl>, Brian Henry wrote:
If you want to read in the description/version/copyright of a file (any
not
necessarly a .NET one) how would you do this? I just want to list all the
files in a directory and their version numbers if they have one thanks


Ooops! You wanted the file version info... You want to look at
System.Diagnostics.FileVersionInfo class :)

Imports System.Diagnostics

Dim versionInfo As FileVersionInfo = _
FileVersionInfo.GetVersionInfo ("myfile path")

Console.WriteLine (versionInfo.FileVersion)
--
Tom Shelton [MVP]

Nov 21 '05 #5

P: n/a
On Mon, 16 Aug 2004 13:37:43 -0700, Tom Shelton
<to*@YOUKNOWTHEDRILLmtogden.com> wrote:
In article <e#**************@TK2MSFTNGP11.phx.gbl>, Brian Henry wrote:
If you want to read in the description/version/copyright of a file (any not
necessarly a .NET one) how would you do this? I just want to list all the
files in a directory and their version numbers if they have one thanks


You might want to have a look at the System.IO.FileInfo class...

Or the FileVersionInfo class from System.Diagnostics for richer
information.

--
Scott
http://www.OdeToCode.com
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.