Connecting Tech Pros Worldwide Help | Site Map

File version in filesystem

Emanuele Ornella
Guest
 
Posts: n/a
#1: May 17 '06
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

Ignacio Machin \( .NET/ C# MVP \)
Guest
 
Posts: n/a
#2: May 17 '06

re: File version in filesystem


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" <emaNONLEGGOLEMAIL@libero.it> wrote in message
news:1147876025.031292.224080@38g2000cwa.googlegro ups.com...[color=blue]
> 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
>[/color]


Michael Nemtsev
Guest
 
Posts: n/a
#3: May 17 '06

re: File version in filesystem


Look at System.Diagnostics.FileVersionInfo

"Emanuele Ornella" wrote:
[color=blue]
> 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...
>[/color]

--
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

Emanuele Ornella
Guest
 
Posts: n/a
#4: May 17 '06

re: File version in filesystem


Thanks a lot!
ema

andrewcw
Guest
 
Posts: n/a
#5: Jun 26 '06

re: File version in filesystem


I had the same need, the answer for me was in :

System.Diagnostics.FileVersionInfo finfo =
FileVersionInfo.GetVersionInfo(fullFilePath);


--
Andrew


"Emanuele Ornella" wrote:
[color=blue]
> 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
>
>[/color]
Closed Thread