set /p 目录=目录,拖入= rd /s /q %目录% ::ren *.txt *.html ::copy /B *.html aaa.txt pause 转载于:https://www.cnblogs.com/Chary/p/No0000D9.html