1@echo off 2rem A batch program to build or rebuild a particular configuration. 3rem just for convenience. 4 5setlocal 6set platf=Win32 7set conf=Release 8set build=/build 9 10:CheckOpts 11if "%1"=="-c" (set conf=%2) & shift & shift & goto CheckOpts 12if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts 13if "%1"=="-r" (set build=/rebuild) & shift & goto CheckOpts 14 15set cmd=devenv pcbuild.sln %build% "%conf%|%platf%" 16echo %cmd% 17%cmd% 18