复制粘贴到记事本,另存为xx.bat,编码选ANSI,跟要处理的文件夹放一起运行
@璐村惂鐢ㄦ埛_000076K馃惥 off
rem 根据给出的新旧名称对应关系重命名多个文件夹
mode con lines=1000
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@璐村惂鐢ㄦ埛_053Q95e馃惥 %z%
cd /d "%~dp0"
for /f "delims=:" %%a in ('findstr /n "^exit" "%~f0"') do set last=%%a
for /f "skip=%last% tokens=1* delims==" %%a in ('type "%~f0"') do (
if exist "%%a" (
echo;"%%a" --^> "%%b"
)
)
echo;%#% +%$%%$%/%@% %z%
pause
exit
1=张三
2=李四
3=王五
4=赵六
@璐村惂鐢ㄦ埛_000076K馃惥 off
rem 根据给出的新旧名称对应关系重命名多个文件夹
mode con lines=1000
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@璐村惂鐢ㄦ埛_053Q95e馃惥 %z%
cd /d "%~dp0"
for /f "delims=:" %%a in ('findstr /n "^exit" "%~f0"') do set last=%%a
for /f "skip=%last% tokens=1* delims==" %%a in ('type "%~f0"') do (
if exist "%%a" (
echo;"%%a" --^> "%%b"
)
)
echo;%#% +%$%%$%/%@% %z%
pause
exit
1=张三
2=李四
3=王五
4=赵六