滴血雄鹰 当前离线
一级士官
评分人数
不知道是谁 当前离线
@echo off setlocal enabledelayedexpansion for /f %%i in (1.txt) do set /a a+=1 for /f "delims=" %%i in (1.txt) do ( echo %%i>>2.txt set /a b+=1 if !b! equ !a! goto end echo sleep 60>>2.txt ) :end pause复制代码
TOP
不知道是谁 发表于 2021-6-13 12:07
qixiaobin0715 当前离线
大校
路过 当前离线
三级士官
@echo off setlocal enabledelayedexpansion for /f "delims=" %%a in ('dir /b *.txt') do ( set/p f=<"%%a" (echo;!f! for /f "usebackq skip=1 delims=" %%b in ("%%a") do (echo;sleep 60 echo;%%b))>new_%%a ) pause exit复制代码
@echo off setlocal enabledelayedexpansion for %%a in (*.txt) do ( set n=0 (for /f "delims=" %%i in ('type "%%a"') do ( set /a n+=1 if !n! neq 1 echo,sleep 60 echo,%%i ))>"#%%a" ) pause复制代码
newswan 当前离线
上尉
foreach ($f in get-childitem *.txt -name) { $fc = get-content 1.txt $fc = $fc -replace "$","`n---" $fc[$fc.count-1] = $fc[$fc.count-1] -replace "`n---","" $fc }复制代码