Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

File version in filesystem

Question posted by: Emanuele Ornella (Guest) on May 17th, 2006 02:35 PM
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 \)'s Avatar
Ignacio Machin \( .NET/ C# MVP \)
Guest
n/a Posts
May 17th, 2006
02:45 PM
#2

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's Avatar
Michael Nemtsev
Guest
n/a Posts
May 17th, 2006
02:45 PM
#3

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's Avatar
Emanuele Ornella
Guest
n/a Posts
May 17th, 2006
03:35 PM
#4

Re: File version in filesystem
Thanks a lot!
ema


andrewcw's Avatar
andrewcw
Guest
n/a Posts
June 26th, 2006
09:05 PM
#5

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]

 
Not the answer you were looking for? Post your question . . .
189,321 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors