for /F "eol=; tokens=1 delims=;" %%I in (text.txt) do (
set /a count+=1
if !count! leq 10 echo %%I>>list1
)
答案 0 :(得分:0)
请改为尝试:
for /F "eol=; tokens=1 delims=; " %%I in (text.txt) do (
set /a count+=1
if !count! leq 10 echo %%I>>list1
)
注意'delims =中的空格; ”。