@echo off rem prebuild.bat @set VSDIR=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE @set VCDIR=C:\Program Files\Microsoft Visual Studio .NET 2003 @set DevEnvDir=%VSDIR% @set MSVCDir=%VCDIR%\VC7 @set PATH=%MSVCDir%\BIN;%VCDIR%\Common7\Tools\bin;%PATH% @set INCLUDE=%MSVCDir%\INCLUDE;%VCDIR%\INCLUDE;%INCLUDE% @set LIB=%MSVCDir%\LIB;%VCDIR%\LIB;%LIB% @set top=%1 @set type=%2 @set title=%3 @set NUM=%4 set BUILD_DIR=%top%\projectX IF "%BUILD_DIR%"=="" goto badBuildDir IF NOT EXIST %BUILD_DIR% goto badBuildDir cd %BUILD_DIR% devenv projectX.sln /clean debug @goto end :badBuildDir @echo Build directory does not exist!!!! @goto end :end