itunesis 当前离线
上等兵
TOP
went 当前离线
少校
[*]复制代码
set "dir=%%~nxi"复制代码
@echo off for /d %%i in ("[*]*") do ( set "dir=%%~ni" call rename "%%i" "%%dir:*]=%%" ) pause&exit复制代码
@echo off set "folder=C:\Users\lenovo\Desktop\1" for /d %%i in ("%folder%\[*]*") do ( set "dir=%%~ni" call rename "%%i" "%%dir:*]=%%" ) pause&exit复制代码
ivor 当前离线
上校
powershell "dir | % {$_.MoveTo(($_.Name -replace '\[.*?\]',''))}"复制代码