Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Delete some old files from a folder with some squence by windows batch script. Need help.

$
0
0

Hi,

There is a folder in our app server where there are millions of files present. However they all are unused. I have to delete the files based on a sequence. The sequence is weekly basis. Ex: firstly  the list of files will be deleted those are created  very first week. (The oldest week). Then again it will delete files created the newer week prior to that week. Likewise it should go.

And script will only keep files those are just 180 days older than the current date. Can you please help me with the batch code ?

Cheers !!!


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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