How do I Detect (and Delete) a File if it is Empty using a DOS Batch File? - Stack Overflow
I've managed to make a macro that can actually delete empty files and empty folders within a folder hierarchy. I took me a while to fiddle it out, but now it works: @ECHO OFF SET topLevel=%cd% FOR /D /R %%D IN (*) DO ( CD %%D FOR %%F IN (*) DO ......