Scheduled Task: Directory cleanup using windows batch script

Posted by d03boy on Stack Overflow See other posts from Stack Overflow or by d03boy
Published on 2009-01-09T20:21:12Z Indexed on 2010/05/11 18:34 UTC
Read the original article Hit count: 268

Filed under:
|
|

I have a shared disk that I would like to clean up once per week using a scheduled task of some sort. I would like to use a batch script so that the system admins can easily modify it or reuse it on other directories when needed.

The directory has files with multiple file extensions but the ones that need to be deleted end in .bkf and must be over 2 weeks old.

Does anyone have a batch script solution for this windows server (not sure which version)?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about batch