Hello all...I looked into the cleandirectory() udf and doesn't work for what I need.
The thing is that there are folders created daily and after a certain amount of days need to be removed. If I use cleandirectory() it will do it but will also delete files from the folders that need to be kept.
#115505 - 2004-03-0409:47 PMRe: Help with folder cleanup
CoCo
MM club member
Registered: 2000-11-20
Posts: 1342
Loc: NL
You have to make a script which looks to todays date and the creation date of the folders. Lets say you want to delete every folder older than one week.
There are some time UDF's. Search for it in the UDF forum...
And it is the cleandirectory() udf but it does not work for me because I could have certain files on all folders with dates older and would be deleted.
Anyways I'll do some more searching but the help is very appreciated!!!!
#115507 - 2004-03-0409:59 PMRe: Help with folder cleanup
CoCo
MM club member
Registered: 2000-11-20
Posts: 1342
Loc: NL
Quote: And it is the cleandirectory() udf but it does not work for me because I could have certain files on all folders with dates older and would be deleted.
No, it is not...
I meant DateTimeDiff(), DateCalc(), DateTimeMath(),DateMath(), SerialDate(), etc