Connecting Tech Pros Worldwide Help | Site Map

File version in filesystem

  #1  
Old May 17th, 2006, 03:35 PM
Emanuele Ornella
Guest
 
Posts: 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

  #2  
Old May 17th, 2006, 03:45 PM
Ignacio Machin \( .NET/ C# MVP \)
Guest
 
Posts: n/a

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, 03:45 PM
Michael Nemtsev
Guest
 
Posts: n/a

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, 04:35 PM
Emanuele Ornella
Guest
 
Posts: n/a

re: File version in filesystem


Thanks a lot!
ema

  #5  
Old June 26th, 2006, 10:05 PM
andrewcw
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create table in sql server from either a datagridview or excelfile TG answers 1 June 27th, 2008 09:15 PM
Cannot modify the .mdf file TTT answers 2 July 22nd, 2006 11:05 PM
file fragmentation project Bart Nessux answers 3 July 18th, 2005 12:35 PM
quicker/easier/more secure to put pictures in BLOB fields in mysql or in a directory? NotGiven answers 3 July 17th, 2005 09:00 AM