How to write a batch file on Windows that when the folder is less then 10MB, and delete it?

Posted by user28167 on Super User See other posts from Super User or by user28167
Published on 2010-05-27T02:08:04Z Indexed on 2010/05/27 2:11 UTC
Read the original article Hit count: 172

Filed under:
|

I have a Folder "myFolder", in the "myFolder", I have many sub folders, I know that if the sub folder is less than 10MB, it can my deleted. But instead of checking the folder step by step, how can I write a batch job to help me? thz.

Plz notice that I ONLY want to delete folders, not files, thz.

© Super User or respective owner

Related posts about Windows

Related posts about batch