File version in filesystem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Emanuele Ornella

    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.FileI nfo.
    Well, I do not find anything at all...

    Any suggestion ?

    Thanks in advance,
    ema

  • Ignacio Machin \( .NET/ C# MVP \)

    #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" <emaNONLEGGOLEM AIL@libero.it> wrote in message
    news:1147876025 .031292.224080@ 38g2000cwa.goog legroups.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.FileI nfo.
    > Well, I do not find anything at all...
    >
    > Any suggestion ?
    >
    > Thanks in advance,
    > ema
    >[/color]


    Comment

    • Michael Nemtsev

      #3
      RE: File version in filesystem

      Look at System.Diagnost ics.FileVersion Info

      "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.FileI nfo.
      > 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

      Comment

      • Emanuele Ornella

        #4
        Re: File version in filesystem

        Thanks a lot!
        ema

        Comment

        • andrewcw

          #5
          RE: File version in filesystem

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

          System.Diagnost ics.FileVersion Info 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.FileI nfo.
          > Well, I do not find anything at all...
          >
          > Any suggestion ?
          >
          > Thanks in advance,
          > ema
          >
          >[/color]

          Comment

          Working...