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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Output filename strings in MSVC 2008 Express Edition

Output filename strings in MSVC 2008 Express Edition

Scheduled Pinned Locked Moved C / C++ / MFC
help
5 Posts 3 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.
  • C Offline
    C Offline
    CaptJosh
    wrote on last edited by
    #1

    I'm trying to find out what strings to enter into the output filename field of the linker section of project properties in order to make my project always have the compile date included in the output filename. Preferably year first, then month, then day, as this will make the numbers increment more logically. Separators such as hyphens or underscores between the numbers are acceptable, but not necessary. The idea is that the compile date can act as a build number, and also will tell me at a glance which compile is from when, so I have an idea of what features are in the build based on when I compiled. I did try digging around in the help files, but as usual for MS, they should be called "no help" files.

    CaptJosh There are only 10 kinds of people in the world; those who understand binary and those who don't.

    S N 2 Replies Last reply
    0
    • C CaptJosh

      I'm trying to find out what strings to enter into the output filename field of the linker section of project properties in order to make my project always have the compile date included in the output filename. Preferably year first, then month, then day, as this will make the numbers increment more logically. Separators such as hyphens or underscores between the numbers are acceptable, but not necessary. The idea is that the compile date can act as a build number, and also will tell me at a glance which compile is from when, so I have an idea of what features are in the build based on when I compiled. I did try digging around in the help files, but as usual for MS, they should be called "no help" files.

      CaptJosh There are only 10 kinds of people in the world; those who understand binary and those who don't.

      S Offline
      S Offline
      Saurabh Garg
      wrote on last edited by
      #2

      I am not sure if you can do that in VS. One way to do this is to create a bat file in which you rename the generated executable file and run that bat file in post-build events. -Saurabh

      1 Reply Last reply
      0
      • C CaptJosh

        I'm trying to find out what strings to enter into the output filename field of the linker section of project properties in order to make my project always have the compile date included in the output filename. Preferably year first, then month, then day, as this will make the numbers increment more logically. Separators such as hyphens or underscores between the numbers are acceptable, but not necessary. The idea is that the compile date can act as a build number, and also will tell me at a glance which compile is from when, so I have an idea of what features are in the build based on when I compiled. I did try digging around in the help files, but as usual for MS, they should be called "no help" files.

        CaptJosh There are only 10 kinds of people in the world; those who understand binary and those who don't.

        N Offline
        N Offline
        Nibu babu thomas
        wrote on last edited by
        #3

        CaptJosh wrote:

        The idea is that the compile date can act as a build number, and also will tell me at a glance which compile is from when, so I have an idea of what features are in the build based on when I compiled. I did try digging around in the help files, but as usual for MS, they should be called "no help" files.

        Does this help? -> http://support.microsoft.com/kb/q237870/[^]

        Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

        C 1 Reply Last reply
        0
        • N Nibu babu thomas

          CaptJosh wrote:

          The idea is that the compile date can act as a build number, and also will tell me at a glance which compile is from when, so I have an idea of what features are in the build based on when I compiled. I did try digging around in the help files, but as usual for MS, they should be called "no help" files.

          Does this help? -> http://support.microsoft.com/kb/q237870/[^]

          Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

          C Offline
          C Offline
          CaptJosh
          wrote on last edited by
          #4

          This is is not what I was thinking of. Let me describe exactly what I'm working with on the project file. I right-click on the project in the sidebar after loading the solution. I click on properties from the popup menu and get a pop-up window of project properties which also has a sidebar. I click on "Linker" in the sidebar and the first field in the main area that shows is the Output File field. There I can change the filename. Is there anything I can enter in this field to make it automatically include the compile date in some form in the filename?

          CaptJosh There are only 10 kinds of people in the world; those who understand binary and those who don't.

          C 1 Reply Last reply
          0
          • C CaptJosh

            This is is not what I was thinking of. Let me describe exactly what I'm working with on the project file. I right-click on the project in the sidebar after loading the solution. I click on properties from the popup menu and get a pop-up window of project properties which also has a sidebar. I click on "Linker" in the sidebar and the first field in the main area that shows is the Output File field. There I can change the filename. Is there anything I can enter in this field to make it automatically include the compile date in some form in the filename?

            CaptJosh There are only 10 kinds of people in the world; those who understand binary and those who don't.

            C Offline
            C Offline
            CaptJosh
            wrote on last edited by
            #5

            Hrm. I seem to have baffled the boards...

            CaptJosh There are only 10 kinds of people in the world; those who understand binary and those who don't.

            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