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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Current Date of TPS File

Status
Not open for further replies.

wchestnut

Programmer
Aug 9, 2010
79
US
I need to be able to check and see if a TPS file has been modified yet in the current date. Is there a way to pull the file's current date?
 
Hi!

Unluckily for TPS files, the Modified Date is updated EVEN if the file is opened in READ-ONLY mode and so there is NO way to find out if the file has been modified except by doing a CRC Checksum of the file's contents.

Regards
 
That's okay. I just need to get the TPS file date. Is there a function I can use?
 
Hi!

You could use the DIRECTORY() command OR use the GetFileDate() & GetFileTime() functions in CWUTIL.inc

Look in the help for DIRECTORY(), GetFileDate() & GetFileTime().

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top