bat 调用exe

@set errorlevel=>nul
:reInput
@echo 请输入批次号:
@set/p 批次号= >nul
@set 批次号|findstr "\<%search%\>" >nul
@set search=%批次号 >nul
@if %批次号%=="" goto reInput >nul
@set errorlevel=>nul

@set 源文件路径=C:UsersadminDesktop源文件

@set 程序路径=D:ETLETLEtlTranslateInterfaceinx64DebugEtlTranslateInterface.exe

@echo EOD启动!!!!

@ping -n 5 127.1>nul
call %程序路径% %批次号% %源文件路径%
原文地址:https://www.cnblogs.com/kexb/p/7998478.html