bat current directory loop code example Example: bat current directory loop for /r %%i in (*) do echo %%i