@echo off
set MSBuildFile=BUILD_FILE_NAME_GOES_HERE
set MSBuildArgs=/target:TARGET_GOES_HERE /property:Configuration=Release
set MSBuildPath=%windir%\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe
echo Trying to update source code by using TortoiseProc (a part of the TortoiseSVN)
2>NUL TortoiseProc /command:update /path:. /closeonend:4
IF NOT EXIST %MSBuildPath% GOTO NOTINSTALLED
echo Executing MSBuild
%MSBuildPath% %MSBuildFile% %MSBuildArgs%
GOTO END
:NOTINSTALLED
1>&2 echo **ERROR** MSBuild wasn\'t found at the following location %MSBuildPath%. Please install corresponding version of the .NET Framework
:END