hgx126 当前离线
二级士官
pusofalse 当前离线
荣誉版主
@echo off for %%a in (*.txt) do >"%%~na_new.csv" sed "s/|/,/g;s/,\([0-9]\{11,\}\)/,'\1/g" "%%~a" pause复制代码
TOP
@echo off for %%a in (*.txt) do ( for /f "usebackq tokens=1-7 delims=|" %%i in ("%%a") do ( >>"%%~na_new.csv" echo %%i,'%%j,'%%k,%%l,'%%m,%%n,%%o, )) pause复制代码