hackes 当前离线
列兵
CrLf 当前离线
论坛巡查
@echo off (for /f "delims=" %%a in (a.txt) do ( set str=%%a setlocal enabledelayedexpansion for %%b in ("!str: =\!\..") do echo;%%~nb endlocal ))>b.txt pause复制代码
TOP
qixiaobin0715 当前离线
大校
@echo off setlocal enabledelayedexpansion for /f "delims=" %%a in (a.txt) do ( set "str1=%%a" set str1=!str1:复制=! for %%i in (!str1!) do set str2=%%i echo,!str2! ) pause复制代码
yakeyun 当前离线
少尉
yhcfsr 当前离线
中尉
@powershell -c "gc a.txt|foreach-object{$_ -replace '.*\s+(\d+)\s+复制.*','$1'}|Out-File -FilePath b.txt"复制代码
newswan 当前离线
上尉