Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

batch/scripts file fro deleting files older than X days

$
0
0

Hi,

 

can any one provide me with bath/script file for deleting files under a directory and its subdirectory without actually deleting directories.Files which are older than say 7 days.

i need this because i am trying automate the logs rotation so that manual work is reduced.

 

Any help woud be greatly appreciated.!!

Thanks in advance.


Savio

Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>