maobin126 当前离线
列兵
foxJL 当前离线
荣誉版主
@echo off for /f "tokens=1* delims=_" %%i in ('dir /b /s /a-d "D:\歌星\*_*.*"') do ( for %%k in ("%%j\..") do (ren "%%i_%%j" "%%~nxk-%%~nxi%%~xj") )复制代码
TOP
胡洋 当前离线
Get-ChildItem D:\test |%{ Rename-Item -Path D:\test\$_ -NewName $("陈琳-" + $(($_ -split '[_.]')[0,-1] -join '.')) }复制代码
@echo off&attrib +s "%~f0" for /f "tokens=1* delims=_" %%i in ('dir /b') do (ren,"%%i_%%j" "陈琳-%%i%%~xj")复制代码
changedirectory 当前离线
一级士官
attrib +s "%~f0" for /r %%a in (*) do ( for /f "tokens=1-8 delims=_." %%b in ("%%~nxa") do ( ren "%%a" "陈琳-%%b.%%i" ) ) pause复制代码