@echo off CHCP 65001 cd ./win7-x64 rmdir /S /Q GameConfig cd ./bin/ ExcelExport.exe "%2" "%3" "%4" SET SourceFile=..\error.log if exist %SourceFile% ( ::chcp 65001 type %SourceFile% echo echo **********************ExcelExport fail stop check ********************** ) else ( echo ********************** ok ********************** echo ********************** start checkbin ********************** cd .. cd checkbin CheckConfig.exe echo ********************** end checkbin ********************** ) if not "%1" == "nopause" pause