Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. details of a exe

details of a exe

Scheduled Pinned Locked Moved .NET (Core and Framework)
announcement
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    balakpn
    wrote on last edited by
    #1

    hi i want to get the values like file version product version of an exe pls give me some idea

    with regards Balagurunathan.B

    S V 2 Replies Last reply
    0
    • B balakpn

      hi i want to get the values like file version product version of an exe pls give me some idea

      with regards Balagurunathan.B

      S Offline
      S Offline
      Scott Dorman
      wrote on last edited by
      #2

      Try looking at the FileVersionInfo[^] class.

      Scott.


      —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

      1 Reply Last reply
      0
      • B balakpn

        hi i want to get the values like file version product version of an exe pls give me some idea

        with regards Balagurunathan.B

        V Offline
        V Offline
        Vaibhav Sharma
        wrote on last edited by
        #3

        Hi, Here is the complete snippet for using the FileVersionInfo class. Thought this would be better for displaying a couple of things: 1. How to get the System Directory 2. How to get the file info. (your primary concern) Dim appName As String = Environment.SystemDirectory & "\notepad.exe" Label1.Text = _ "Comments: " & FileVersionInfo.GetVersionInfo(appName).Comments & vbCrLf & _ "Company Name: " & FileVersionInfo.GetVersionInfo(appName).CompanyName.Trim & vbCrLf & _ "File Build Part: " & FileVersionInfo.GetVersionInfo(appName).FileBuildPart.ToString.Trim & vbCrLf & _ "File Description: " & FileVersionInfo.GetVersionInfo(appName).FileDescription.Trim & vbCrLf & _ "Filename: " & FileVersionInfo.GetVersionInfo(appName).FileName.Trim & vbCrLf & _ "File Version: " & FileVersionInfo.GetVersionInfo(appName).FileVersion.Trim & vbCrLf & _ "Internal Name: " & FileVersionInfo.GetVersionInfo(appName).InternalName.Trim & vbCrLf & _ "Is Debug: " & FileVersionInfo.GetVersionInfo(appName).IsDebug.ToString & vbCrLf & _ "Is Patched: " & FileVersionInfo.GetVersionInfo(appName).IsPatched & vbCrLf & _ "Language: " & FileVersionInfo.GetVersionInfo(appName).Language & vbCrLf & _ "Legal Copyright: " & FileVersionInfo.GetVersionInfo(appName).LegalCopyright & vbCrLf & _ "Product Name: " & FileVersionInfo.GetVersionInfo(appName).ProductName & vbCrLf & _ "Product Version: " & FileVersionInfo.GetVersionInfo(appName).ProductVersion & vbCrLf & _ "Special Build: " & FileVersionInfo.GetVersionInfo(appName).LegalTrademarks & vbCrLf & _ "Original Filename: " & FileVersionInfo.GetVersionInfo(appName).OriginalFilename & vbCrLf & _ " Needless to say that there are some more properties." So if you haven't really done a lot then this should help you out. In case i was late in posting (:laugh:as usual) please pardon me. Happy Coding! :)

        Regards, Vaibhav Sharma

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups