Batch change .txt to .csv
Please copy the following into the notepad, change the suffix to .bat @echo off setlocal enabledelayedexpansion for %%F in (*.txt) do ( set /p .=Processing [%%~F] … <nul set “firstline=” (for /f “tokens=* usebackq” %%a in (“%%~nxF”) do ( if not defined firstline ( set firstline=%%a echo !firstline:”=! ) else …