@echo offset th=999for /f "tokens=*" %%i in ('dir/b *.csv') do (echo aa bb cc dd ee cc>temp.txtfor /f "tokens=1-5 delims= " %%i in ('type "%%i"') do (echo %%i %th% %%k %%l %%m>>temp.txt)ren /y temp.txt "%%i")