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