WDMZ 当前离线
上等兵
@echo off&setlocal enableDelayedExpansion set "r=a.txt" for /f "usebackq delims=" %%a in ("%r%") do set/a a+=1&set "#!a!=%%a" for %%a in (*.vob) do if /i not "%%a"=="%r%" ( set/a b+=1 if !b! gtr %a% goto:end for %%b in (!b!) do ( ren "%%a" "!#%%b!.mpg" set #!b!= )) :end (for /f "tokens=1* delims==" %%a in ('set #') do echo/%%b)>"%r%"复制代码
评分人数
CrLf 当前离线
论坛巡查
@echo off for /f "delims=" %%a in (list.txt) do ( set /a n+=1 set name=%%a setlocal enabledelayedexpansion ren Part_!n!_*.vob *.vob=====!name!.vob || ren Part!n!.vob *.vob=====!name!.vob endlocal )复制代码
TOP
find 当前离线
少将
apang 当前离线
上将
@echo off&set n=0 for %%a in (Part_14_1 Part_15_1 Part16 Part17) do call :11 "%%a" goto :eof :11 for /f "delims=" %%b in ('more +%n% list.txt') do ( ren "%~1.vob" "%~1.vob====%%b.vob" call set/a n+=1&goto :eof )复制代码
terse 当前离线
中将
@echo off for /f "tokens=1* delims=:" %%a in ('dir /b /a-d *.vob^|findstr /n .*') do ( for /f "tokens=1* delims=:" %%c in ('findstr /n .* list.txt') do ( IF %%a EQU %%c echo ren "%%b" "%%b==%%d%%~xb" ) ) pause复制代码
Seder 当前离线
一级士官