REM %1 = REM %2 = REM %3 = set binfolder=%3\creatools_bin\%2Bin cd %binfolder% 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 %3\Result_Installers\