anchor.diff:  @echo.
   @echo ***** NiftyLink Continuous Build Script Successfully FINISHED *****
   @endlocal
  -@endlocal
  +@endlocal
positive.code: @REM *****  Run Visual Studio to build the current build conf  *****
  @echo ---------------------------------------------------------------------
  @echo Running VS....
  "%VS_LOCATION%\Common7\IDE\%VSVER%" /build %BCONF% /project ALL_BUILD /projectconfig %VSCONFSTRING% %BUILD_BIN%\NIFTYLINK-SUPERBUILD.sln | "%GIT_LOCATION%\tee.exe" "c:\CB\NiftyLink_log.txt" 2>&1
  
  @REM *****  Searching for "Build Failed" string in the VS log  *****
  @set "search=^.*Build FAILED.$"
  @echo(findstr /r /c:"!search!" /F:"c:\CB\NiftyLink_log.txt" >nul && (
    @echo Build error FOUND!
    @SET /A errno^|=%ERROR_DEVENV%
  ) || (
    @echo No build error found.
    @rem any commands can go here
  )
  
  @echo Error number after VS build: %errno%
  @IF %errno% NEQ 0 EXIT /B 2
  
  @echo. 
  @echo ---------------------------------------------------------------------
  
  @REM  *****  Set PATH and Environment for NiftyLink *****
  @cd /d "%BUILD_BIN%\NiftyLink-build\"
  @set CL=/D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
  @set LINK=/LARGEADDRESSAWARE
  
negative.code: 
  @REM *****  Setting localised variables - Change these to match your system!!  *****
  @set "VS_LOCATION=c:\Program Files (x86)\Microsoft Visual Studio 10.0"
  @set "CMAKE_LOCATION=c:\Program Files (x86)\CMake\bin"
  @set "BUILD_ROOT=D:\CB"
  @set "PUTTY_LOCATION=c:\Program Files (x86)\PuTTY\"
  @set "QT_LOCATION=c:\Qt\4.8.5\bin\"
  @set "GIT_LOCATION=c:\Program Files (x86)\Git\bin\"
  
  @rem if you are cross-compiling between 64 and 32 bit then override your qt here
  @rem @set "QTDIR=C:\Qt\Qt-4.8.4-x86-vc10"
  @rem @set "PATH=%QTDIR%\bin;%PATH%"
  
  @REM *****  Set your build type 64bit/32bit  *****
  @set "BTYPE=x64"
  @REM @set "BTYPE=Win32"
  
  @REM *****  Set your Visual Studio Version  *****
  @set "VSVER=devenv.com"
  @REM @set "VSVER=VCExpress.exe"
  
  @REM *****  Set your CMake generator - the tool you're going to use to build NifTK  *****
  @set "CMAKE_GENERATOR=Visual Studio 10 Win64"
  
  @REM ***** Possible options are the following: ***** 
  @REM NMake Makefiles             = Generates NMake makefiles.
  