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

How to write a program?

Status
Not open for further replies.

daniel5455

IS-IT--Management
Jun 18, 2002
14
US
How can i write a program to delete certain files that start with tmp with in a folder that are modified between certain dates and i can adjust the dates manually.
 
I'm not exactly sure what your asking. Do you want specific functions for file IO or help with being able to open/edit/delete said files through the IO functions? General questions get a general answer, so be more specific.
 
You need CFileFind class to write a function that will begin looking for tmp files in whatever folder you specify.

To check when dates have been modified, use CFile::GetStatus.
To change the dates, use CFile::SetStatus.
For more info on these classes and members, look them up in the MSDN help menu.

Dina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top