Compo, your code works perfectly:
@For /F "Skip=50 EOL=? Delims=" %%G In ('Dir "C:\Images" /A:-D /B /O:-D /T:W 2^>NUL') Do @Del "C:\Images\%%G" /A /F
Do you have any suggestions on how to apply this same method to the contents of multiple folders?
I made a sample folder structure:
Or should I just create a different batch file and run automatically for each subfolder?
Thank you very much for your help.