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. C / C++ / MFC
  4. Version of a console application

Version of a console application

Scheduled Pinned Locked Moved C / C++ / MFC
questionannouncement
9 Posts 5 Posters 0 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.
  • _ Offline
    _ Offline
    _Flaviu
    wrote on last edited by
    #1

    How can I know the version of an console application executable ? (obviously, this exe is not made it by me)

    L M C M 4 Replies Last reply
    0
    • _ _Flaviu

      How can I know the version of an console application executable ? (obviously, this exe is not made it by me)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Unless the executable contains version information you can't. It is possible to add version information in a resource definition file when building a console app, but few people do so. Right click the .exe and check the properties.

      _ 1 Reply Last reply
      0
      • L Lost User

        Unless the executable contains version information you can't. It is possible to add version information in a resource definition file when building a console app, but few people do so. Right click the .exe and check the properties.

        _ Offline
        _ Offline
        _Flaviu
        wrote on last edited by
        #3

        Yes, I have checked properties in Windows, Explorer, but show me nothing. I thought there is another way to find it.

        L 1 Reply Last reply
        0
        • _ _Flaviu

          Yes, I have checked properties in Windows, Explorer, but show me nothing. I thought there is another way to find it.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          In that case it does not contain 'standard' version information. There may be other information held in the program but only the creators will know where it is.

          1 Reply Last reply
          0
          • _ _Flaviu

            How can I know the version of an console application executable ? (obviously, this exe is not made it by me)

            M Offline
            M Offline
            Maximilien
            wrote on last edited by
            #5

            does it have by chance a "-v" or "-version" or "/version" command line parameter ?

            I'd rather be phishing!

            _ 1 Reply Last reply
            0
            • _ _Flaviu

              How can I know the version of an console application executable ? (obviously, this exe is not made it by me)

              C Offline
              C Offline
              CPallini
              wrote on last edited by
              #6

              How do you know that such executable actually has a version?

              "In testa che avete, Signor di Ceprano?" -- Rigoletto

              _ 1 Reply Last reply
              0
              • _ _Flaviu

                How can I know the version of an console application executable ? (obviously, this exe is not made it by me)

                M Offline
                M Offline
                Mircea Neacsu
                wrote on last edited by
                #7

                Have you looked at the date field in the PE header? See PE Format - Win32 apps | Microsoft Docs[^] It’s not exactly a version information but it might give you an ordering of the different versions. That’s assuming the linker used to create the app bothered to fill it. Most, but not all, do.

                Mircea

                1 Reply Last reply
                0
                • C CPallini

                  How do you know that such executable actually has a version?

                  "In testa che avete, Signor di Ceprano?" -- Rigoletto

                  _ Offline
                  _ Offline
                  _Flaviu
                  wrote on last edited by
                  #8

                  That it is a good question. I don't know if it has a version.

                  1 Reply Last reply
                  0
                  • M Maximilien

                    does it have by chance a "-v" or "-version" or "/version" command line parameter ?

                    I'd rather be phishing!

                    _ Offline
                    _ Offline
                    _Flaviu
                    wrote on last edited by
                    #9

                    No, I don't have such option.

                    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