422,351 Members | 1,464 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,351 IT Pros & Developers. It's quick & easy.

File version in filesystem

P: n/a
I'm trying to get the version of a DLL and in general the version of a
file in the filesystem.
I do not find anything using System.IO.FileInfo.
Well, I do not find anything at all...

Any suggestion ?

Thanks in advance,
ema

May 17 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

You will have to P/invoke , do a search in google by "file summary" in this
NG, several implementations have been posted here before.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Emanuele Ornella" <em***************@libero.it> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
I'm trying to get the version of a DLL and in general the version of a
file in the filesystem.
I do not find anything using System.IO.FileInfo.
Well, I do not find anything at all...

Any suggestion ?

Thanks in advance,
ema

May 17 '06 #2

P: n/a
Look at System.Diagnostics.FileVersionInfo

"Emanuele Ornella" wrote:
I'm trying to get the version of a DLL and in general the version of a
file in the filesystem.
I do not find anything using System.IO.FileInfo.
Well, I do not find anything at all...


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

May 17 '06 #3

P: n/a
Thanks a lot!
ema

May 17 '06 #4

P: n/a
I had the same need, the answer for me was in :

System.Diagnostics.FileVersionInfo finfo =
FileVersionInfo.GetVersionInfo(fullFilePath);
--
Andrew
"Emanuele Ornella" wrote:
I'm trying to get the version of a DLL and in general the version of a
file in the filesystem.
I do not find anything using System.IO.FileInfo.
Well, I do not find anything at all...

Any suggestion ?

Thanks in advance,
ema

Jun 26 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.