@ECHO OFF IF "%1" == "" GOTO Fail IF "%2" == "" GOTO Fail IF "%3" == "" GOTO Fail cd "%3" SET /P LAST_BUILD_INFO= last_build exit :Fail exit /b 1