Need to get file Version

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

    #1

    Need to get file Version

    Hello,

    I need to get the file version for a file. I am looking for the same
    version shown when you right-click and use properties to view file version.

    Thanks in advance for any help,

    Jacky


  • Cor Ligthert [MVP]

    #2
    Re: Need to get file Version

    Jack,

    I tried it with a txt file in explorer, but did not see any kind of version,
    are you sure that it is in every file?

    Cor

    "Jack" <jouin@webfoxma il.com> schreef in bericht
    news:%23FDbTUfh GHA.4404@TK2MSF TNGP05.phx.gbl. ..[color=blue]
    > Hello,
    >
    > I need to get the file version for a file. I am looking for the same
    > version shown when you right-click and use properties to view file
    > version.
    >
    > Thanks in advance for any help,
    >
    > Jacky
    >[/color]


    Comment

    • Mattias Sjögren

      #3
      Re: Need to get file Version

      >I need to get the file version for a file. I am looking for the same[color=blue]
      >version shown when you right-click and use properties to view file version.[/color]

      For executable files you can use the FileVersionInfo class.


      Mattias

      --
      Mattias Sjögren [C# MVP] mattias @ mvps.org
      http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      Please reply only to the newsgroup.

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Need to get file Version

        "Jack" <jouin@webfoxma il.com> schrieb:[color=blue]
        > I need to get the file version for a file. I am looking for the same
        > version shown when you right-click and use properties to view file
        > version.[/color]

        'System.Diagnos tics.FileVersio nInfo'.

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://classicvb.org/petition/>

        Comment

        • Jack

          #5
          Re: Need to get file Version

          Thanks!!!!
          "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
          news:Od0dXYphGH A.2208@TK2MSFTN GP05.phx.gbl...[color=blue]
          > "Jack" <jouin@webfoxma il.com> schrieb:[color=green]
          >> I need to get the file version for a file. I am looking for the same
          >> version shown when you right-click and use properties to view file
          >> version.[/color]
          >
          > 'System.Diagnos tics.FileVersio nInfo'.
          >
          > --
          > M S Herfried K. Wagner
          > M V P <URL:http://dotnet.mvps.org/>
          > V B <URL:http://classicvb.org/petition/>[/color]


          Comment

          Working...