echo ^^ > index.html copy /y header.html index.html dir *.js /s /b > tmpfile for /F "tokens=*" %%A in (tmpfile) do ( echo ^