@echo off setlocal set target=%~1 if "%target%"=="" ( set target=Build ) for %%p in ( "Configuration=Debug;Platform=x64" "Configuration=Debug;Platform=x86" "Configuration=Release;Platform=x64" "Configuration=Release;Platform=x86" ) do ( msbuild.exe /nologo now.sln -m -t:%target% -p:%%~p ) endlocal