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

  • Thread starter Thread starter DeepakForQueries
  • Start date Start date
D

DeepakForQueries

Guest
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 !!!

Continue reading...
 
Back
Top