:: In a batch file. @echo off for /r %%q in (.) do if (%%~zq)==(0) echo %%q