hucuibai 当前离线
四级士官
CrLf 当前离线
论坛巡查
TOP
@echo off type PlayerPropertyLog20110329.txt>1.txt (for /f "delims=" %%i in (1.txt) do echo ^(%%i^)^,)>2.sql&&del /s /q 1.txt>nul复制代码
tmplinshi 当前离线
版主
@echo off set file="40m.txt" type %file% >40m_type.txt echo 正在统计 %file% 行数... find /v /c "" %file% echo ================ echo 正在统计 40m_type.txt 行数... find /v /c "" 40m_type.txt echo ================ pause复制代码
type 76M.txt >76M_type.txt sort 76M.txt >76M_sort.txt :: 两个输出文件的行数与原文件都相同复制代码
@echo off (for /f "delims=" %%a in ('type 76M.txt') do echo ^(%%a^),)>new.txt :: 这个没有耐心等完,按 Ctrl+C 终止后,new.txt 有 400 多 KB。复制代码
@echo off >456.sql ( echo use !str2!^; echo insert into playerpropertylog^(列名^) values for /f "delims=" %%a in ('more %%i') do echo ^(%%a^)^, )复制代码