I need to remove files older than 30 days under builds\<BuilnNumber>\workflow\*.*
. I also need to remove files older than a year under builds\<BuilnNumber>\htmlreports\*.*
, if they exist.
How do I do that?
I tried using FOR /D /r %%G in ("*") DO xxxx %%~nxG
, but got stuck there.