领航 当前离线
列兵
qixiaobin0715 发表于 2022-7-29 09:58
TOP
qixiaobin0715 当前离线
大校
cd "c:\txt" for /f "tokens=1-2* delims=|" %%i in (a.txt) do echo,%%i^|%%j^|%%k>"c:\news\1001\%%i_%%j.dat"复制代码
评分人数
LJY4.0 当前离线
四级士官
@echo off for /f "delims=" %%a in (test.txt) do ( for /f "tokens=1-2 delms=^|" %%b in ("%%a") do ( echo %%a>%%b-%%c.dat ))复制代码