opp113114 当前离线
列兵
abcd 当前离线
二级士官
@echo off for /d %%i in (*) do ( ren %%i\default.txt %%~ni.txt ) pause复制代码
TOP
@echo off for /d %%i in (*) do ( ren %%i\default.txt %%~ni.txt>nul 2>nul ) pause复制代码
hanyeguxing (寒夜孤星)当前离线
荣誉版主
@echo off for /d %%a in (*) do if exist "%%a\default.txt" move "%%a\default.txt" "指定目录\%%~na.txt"复制代码
@echo off set r=指定目录名 for /d %%a in (*) do if /i not "%%a"=="%r%" if exist "%%a\default.txt" move "%%a\default.txt" "%r%\%%~na.txt"复制代码