<p>The creation date of an executable linked in VS2005 is not set to the real creation-date of the <code>.exe</code> file. Only a complete re-build will set the current date, a re-link will not do it. Obviously the file is set to some date, which is taken from one of the project-files. </p>

<p>So: is there a way to force the linker to set the creation-date to the real link-date?
­­­­­­­­­­­­­­­­­­­­­­­­­­</p>

[{'answer_id': 18278, 'author': 'Mat Noguchi', 'author_id': 1799, 'author_profile': 'https://Stackoverflow.com/users/1799', 'pm_score': 1, 'selected': False, 'text': '<p>Delete the executable as part of a pre-link event.</p>\n\n<p>Edit:\nHah, I forgot about Explorer resetting the creation date if you name a file exactly the same as a file that was recently deleted.</p>\n\n<p>Why are you keying off the creation date anyway?</p>\n'}, {'answer_id': 18280, 'author': 'Brian Ensink', 'author_id': 1254, 'author_profile': 'https://Stackoverflow.com/users/1254', 'pm_score': 0, 'selected': False, 'text': "<p>A complete rebuild will delete that file forcing the linker to create it, hence the reason it gets a new creation date.  You could try disabling incremental linking under project properties (Linker | General).  If that doesn't do it you could add a build event to delete the exe file and force it to create a new file each time.  Both of these things could increase your build time.</p>\n"}, {'answer_id': 18379, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': "<p>Deleting the executable doesn't do the job. That's the problem. Also I could not identify any projectfile, whose datetime was the same as the later linked executable. That lets me conclude, that the 'creation date' is an information taken from within some project-file.</p>\n\n<p>The project has 400000 lines, so a full build is no option. </p>\n"}, {'answer_id': 165021, 'author': 'Martin Beckett', 'author_id': 10897, 'author_profile': 'https://Stackoverflow.com/users/10897', 'pm_score': 0, 'selected': False, 'text': '<p>What about using somethign like DirDate (or write a little util yourself) to set the creation date and call it from the post-build step?</p>\n'}]
['https://Stackoverflow.com/questions/18250', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']