for /f "delims=" %%a in ('dir /a-d/b *.txt') do ren "%%~a" "%%~na.jpg"以上命令写进批处理,放在待处理的文件夹内,运行即可。该代码是把txt文件改成jpg如果需要改其它,请自行修改。