VFP6 I have code to delete all the files in a folder greater than some number of days ago. But I also want to delete the folders that were created > than some number of days ago. How to do?
arraynum=ADIR(aTemps,ctables)
FOR i = 1TO arraynum
if atemps(i,3)+20 < DATE() && last modified date was over 20 days ago
cFile=aTemps(i,1)
DELETEFILE (cpath+cFile)
endifENDFOR