Hello inunix,
This is what I had answered in another thread616-889024.
[tt]
You can use forfiles.exe from resource kits. Look at its help file or issue
forfiles -?
for syntax.
For instance, to [1] delete *.txt files [2] in certain path d:\test [3] including subdirectories for files [4] with date more than 30 days old from today, the line in the batch is something like this:
forfiles -pd:\test -s -m*.txt -d-30 -c"%comspec% /c del @FILE"
[/tt]
regards - tsuji