Erase files but not subfolders & their contents

Paranam Kid

New Member
I have set up a recurring task to erase the files (xlsx, png, pdf, ...) in a folder (called Test for this conversation) but the not the subfolders and their contents of folder Test. For that I have selected the path in the field to be browsed (C:\Users\ParanamKid\Test), and I have set the following Exclude Mask:

C:\Users\ParanamKid\Test\*\*.*

This works great (even if I leave off the *.* bit) except that empty subfolders (i.e those containing no files) are also erased. However, I want to retain the empty subfolders.

I have tried various Types of "syntax" in the Include Mask and Exclude Mask fields, and combinations, but cannot find the right "formula". Is there one or am I asking for the impossible.
 
Back
Top