Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to burn date/time into a build?
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00635930
Message ID:
00635959
Views:
12
>Seems as though this should be easy... so I'm probably just missing it. When I build an app or exe, I want to "burn" the date/time of the build into the build itself (either the compile time of a given PRG or build time would both be OK) ... so that I can put up an about box that says: "This version built mm/dd/yyyy:hh:mm:ss". The only way I can figure out how to do that now is the tedious way... i.e., filling in the info by hand in my code. I suppose I could write a routine to create a .H file on the fly with date/time #DEFINED there literally, and then build the app... but isn't there a more automatic way to do this?

You can use a Projecthook class and in it's BeforeBuild event put "This version built mm/dd/yyyy:hh:mm:ss" into the Project object's VersionComments property. In the EXE you can use Agetfileversion() to get this info. Alternatively you can create and compile a program in the BeforeBuild Event that would return just that info.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform