小白来了 当前离线
一级士官
评分人数
ShowCode 当前离线
VIP1
@echo off cd /d "%~dp0" for /f "tokens=1,2,* delims=-" %%a in ('dir /b /ad *-*-*') do ( move /y "*_%%b-*" "%%a-%%b-%%c" )复制代码
TOP
qixiaobin0715 当前离线
大校
@echo off for /f "delims=" %%i in ('dir /b /ad') do ( for /f "tokens=2 delims=-" %%j in ("%%i") do ( move "*_%%j-*.txt" "%%i\" >nul 2>nul ) ) pause复制代码