470,874 Members | 1,509 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,874 developers. It's quick & easy.

File version in filesystem

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
4 17710
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
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
Thanks a lot!
ema

May 17 '06 #4
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.

Similar topics

14 posts views Thread by Xah Lee | last post: by
3 posts views Thread by Bart Nessux | last post: by
1 post views Thread by Francois Fernandes | last post: by
52 posts views Thread by paytam | last post: by
9 posts views Thread by Julien Biezemans | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.