0

問題が発生している以下の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 のみが報告され、他には何も報告されません。何か提案はありますか?

4

1 に答える 1