J
John Viall
I am trying to look through some directories and delete all files older than
X days, but I'm having trouble with the logic.
The directory structure might look like
\main\sample1\files
\main\sample2\files
\main\sample3\files
I need to be able to get to the files, check their creation date, and delete
them if they are older than X days.
While I'm at it, how can I get a count of all the "sample" directories?
Thanks,
John
X days, but I'm having trouble with the logic.
The directory structure might look like
\main\sample1\files
\main\sample2\files
\main\sample3\files
I need to be able to get to the files, check their creation date, and delete
them if they are older than X days.
While I'm at it, how can I get a count of all the "sample" directories?
Thanks,
John