PDA

View Full Version : Created Date



slimboywynn
07-14-2005, 03:12 PM
Is there a compiler variable that stores the date the script was compiled which can then be embeded into the executable for checking against? I want to expire my update.exe's but I dont want to keep having to fuss around and change the compiler variable everytime :confused:

linder
07-15-2005, 06:20 AM
What you can do is to use the #run compiler directive and call your own application or batch file that writes the actual date into an INI file. Then create a constant using #const and read the value from the INI file (Get value from INI file option). You can use this constant to set your variable.

That's it ;)

Does this help?

slimboywynn
07-15-2005, 08:46 AM
Thanks Friedrich, I think we'll manually enter the date and set a 3 month expiration instead, sounds like too much hard work if you ask me ;) lol

linder
07-15-2005, 08:58 AM
Okay :)