Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXE build date 2

Status
Not open for further replies.

jimstarr

Programmer
Feb 6, 2001
975
US
I've asked this question before.

From within an app (Help/About....) I need to be able to display the date that the exe was built. From previous suggestions I've tried FDATE() and ADIR() but they show modification date rather than create date.

Seems like it should be trivial, but I don't see a native FoxPro way to do this. Do I need an API call?

Thanks!


Jim
 
I'm currently using ADIR(). To quote from my user, the current About screen "displays the date the EXE was last saved, installed, or modified - not the date it was created." I was previously using FDATE(), with the same result.

Jim
 
Code:
oFS = CreateObject("Scripting.Filesystemobject")
oFile = oFS.GetFile(Sys(16,0))
? Sys(16,0), ' created on ',oFile.DateCreated

Bye, Olaf.
 
Thanks for your suggestions. I'm using Olaf's solution.

I do indeed get the creation date of the exe, and this in fact doesn't change when I rebuild the exe. In order to get the date of the new build, I find it necessary to not only delete the previous version of the exe, but also to empty the Recycle Bin prior to build.

Jim

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top