回复 1# comkom1
- for /f "delims=" %%i in ('type "%~f1"')do (set "loop=%%i"&&set/a "n+=1"&&set "new_n=!n!"
- for /l %%n in (1,1,20)do set "new_n=0!new_n!"
- for /l %%n in (1,1,55)do (
- for /f "tokens=1,* delims=," %%y in ("!loop!")do (set "new=%%y"&&set "loop=%%z"
- if "!new:~0,1!"=="-" (
- (echo,%%y)
- echo,"%~dp1!new_n:~-5!.txt"
- )
- )
- )
- )
复制代码
|