for /F %f in ('dir /s /b') do doit -switches %f