@echo off
cd /d %~dp0if exist output.log del /q /f output.log
if exist success.txt del /q /f success.txtcall "%VS140COMNTOOLS%vsvars32.bat"msbuild.exe ***.sln /t:Rebuild /p:Configuration=Release /p:Platform=win32 /p:VisualStudioVersion=14.0 /l:FileLogger,Microsoft.Build.Engine;logfile=output.log /mif %errorlevel% equ 0 echo > success.txt