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

how can I get the last file that created with current date, and know the size of that files.

Status
Not open for further replies.

Eaka

IS-IT--Management
Aug 2, 2020
4
TH
Do someone have full code for study above the subject? I tried two days ago , but I can't.
 
What have you tried? What was wrong with what you tried? Are you wanting to look for the last file in a specific directory? more than one directory? or All directories? What version of Delphi? Starting with Delphi 2010, there is a TFile.GetSize function. You'll probably need to find the list of files, then figure out which ones were created with the current date, then get the file size.

Mirtheil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top