woodywoola 当前离线
列兵
@echo off for /f "tokens=1-3 delims=," %%i in ("733100,72549,99") do ( echo %%i echo %%j echo %%k pause )复制代码
QIAOXINGXING 当前离线
六级士官
回复 QIAOXINGXING 不用替换成空格,“,”本身就是分割符吧? apang 发表于 2012-2-22 22:48
TOP
cjiabing (甲兵时代)当前离线
荣誉版主
Perl 当前离线
中尉
apang 当前离线
上将
@echo off for /f "delims=" %%i in (test.txt) do for %%j in (%%i) do echo %%j pause复制代码
lvsehuaxue 当前离线
@echo off for %%i in ("733100,72549,99") do for %%i in (%%~i) do echo %%i pause复制代码
ivor 当前离线
上校
@echo off&setlocal enabledelayedexpansion&cd /d "%~dp0" for /f "delims=" %%i in (test.txt) do ( for %%a in (%%i) do (echo %%a) ) pause复制代码
BAT1 当前离线