@echo off &setlocal EnableDelayedExpansion mkdir all for /r %%i in (*) do ( echo Copying: %%i xcopy "%%i" "all\" /y )