Leandroz Posted June 22, 2009 Share Posted June 22, 2009 I'd like to include a build timestamp in my AutoIt compiled executable. A build timestamp is some identification of the date and time on which the executable was compiled, and it could be displayed on a GUI element to provide definitive version information beyond a typical release version "vX.Y" label. I.e. the title of a GUI window could read "Application vX.Y by Me - build yyyy-mm-dd.hh-mm-ss" I know AutoItWrapper has a directive "#AutoIt3Wrapper_Res_Field" which allows for this type of information to be included in the resources of the compiled executable, but I don't know how to access it from within an AutoIt script. Is there a some sort of predefined constant which AutoItWrapper can replace at compile-time or is there some way to reliably read the compiled resources? Or perhaps there's another way to achieve this? VenusProject2 1 Link to comment Share on other sites More sharing options...
Leandroz Posted June 22, 2009 Author Share Posted June 22, 2009 Did some searching and, through massive loops, found the very simple solution: CODE#AutoIt3Wrapper_Res_Field = Timestamp|%date% %time% If @Compiled Then MsgBox(0, "", FileGetVersion(@ScriptFullPath, "Timestamp")) Else MsgBox(0, "", "Not compiled") EndIf VenusProject2 1 Link to comment Share on other sites More sharing options...
KaFu Posted June 22, 2009 Share Posted June 22, 2009 Oh, nice info, new to me , thanks a lot. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now