1IF "%DevEnvDir%" == "" GOTO RETRYMSVCINIT 2GOTO AFTERWARNING 3:RETRYMSVCINIT 4IF "%MSVCInitScriptName%" == "" GOTO WARNING 5CALL %MSVCInitScriptName% 6IF "%DevEnvDir%" == "" GOTO WARNING 7GOTO AFTERWARNING 8:WARNING 9REM 10REM Warning: It is recommended that you use the prompt started from the "Visual Studio Command Prompt" shortcut in order to set the paths to 11 the tools. You can also call vsvars32.bat to set the environment before running this script. 12PAUSE 13:AFTERWARNING 14IF "%1" == "Debug" GOTO BUILDDEBUG 15devenv.com test.sln /build Release > maketest.log 16IF "%1" == "Release" GOTO END 17:BUILDDEBUG 18devenv.com test.sln /build Debug >> maketest.log 19GOTO END 20:HELP 21REM ######################################### 22REM Usage is : testBuild.bat [Debug, Release] 23REM 24REM If nothing is specified Debug & Release are built 25REM ######################################### 26:END 27