Connecting Tech Pros Worldwide Help | Site Map

File version in filesystem

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 17th, 2006, 02:35 PM
Emanuele Ornella
Guest
 
Posts: n/a
Default 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


  #2  
Old May 17th, 2006, 02:45 PM
Ignacio Machin \( .NET/ C# MVP \)
Guest
 
Posts: n/a
Default 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]


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

  #4  
Old May 17th, 2006, 03:35 PM
Emanuele Ornella
Guest
 
Posts: n/a
Default Re: File version in filesystem

Thanks a lot!
ema

  #5  
Old June 26th, 2006, 09:05 PM
andrewcw
Guest
 
Posts: n/a
Default 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]
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.