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

Object Rexx and data difference calculations

Status
Not open for further replies.

Millerca

Programmer
Jan 15, 2003
4
US
I need to write a Object Rexx script to select and delete any files that are older than a certain date. Is there any easy way to do this or am I going to need to get the list of files and convert their last changed date in date('B') format and compare that to the current base format date?

Cat
 
I think what you need to do is use SysFileTree to list the directory contents, get the date from the results (I think it puts it in a stem), convert the date to a useful format (like B) and then use something like SysFileDelete to delete it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top