@echo off setlocal enabledelayedexpansion set suffix=jar for %%i in(*.pack.jar)do)( set oName=%%i set tName=!oName:~0,7! set nName=!tName!!suffix! :echo "unpack" !oName!" to " !nName! echo 处理文件:!oName! start /wait unpack200 !oName! !nName! del /F !oName! set /a fNums+=1 ) echo 完成!