for /r "C:\somewhere\test1" %%i in (*.txt) do ( copy "%%i" "C:\somewhere\test2\" >nul ping -n 2 localhost )