@echo off for /f "delims=" %%i in ('dir /a-d/b/s C:\Class2010\*.*') do ( copy "%%i" "C:\testDir") pause