我正在运行以下 windows .bat 脚本,但遇到了麻烦。
@echo off
set /p Var1= Drag and drop your .itmsp folder here:
CALL C:\progra~2\itms\iTMSTransporter -m verify -f %Var1% -u username -p password -o %Var1%\log.txt -s shortname -v eXtreme WONoPause true
IF %ERRORLEVEL% == 0 goto PASS
else goto FAIL
:PASS
blat c:\temp\file.txt -to user@example.com -subject "This has passed"
exit
:FAIL
blat c:\temp\file.txt -to user@example.com -subject "This has failed"
exit
该命令运行但 ERRORLEVEL 似乎不起作用,只报告 0,没有别的。请问有什么建议吗?