REM %1=buildtype %2= cd %2Bin call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1 FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 INSTALL.vcproj FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 PACKAGE.vcproj copy %2*.exe ..\Result_Installers\ cd ..