anchor.diff:      call :haltAndCatchFire "build"
   )
   EXIT /B %ERRORLEVEL%
  -:: Functions to shorten the script
  +rem Functions to shorten the script
   
  -:: Fail when the exit status is not equal to 0
  +rem Fail when the exit status is not equal to 0
   :executeCommand
   %* > "%logFile%"
   SET /A status=%ERRORLEVEL%
   IF %status% NEQ 0 (
  -    :: No message needed as we post before anyway
  +    rem No message needed as we post before anyway
       call :haltAndCatchFire ""
   )
   EXIT /B 0
   
  -:: Post status to the server
  +rem Post status to the server
   :postStatus
   curl -s -A "%userAgent%" --data "type=progress&status=%~1&message=%~2" -w "\n" "%reportURL%" >> "%logFile%"
   EXIT /B 0
   
  -:: Exit script and post abort status
  +rem Exit script and post abort status
   :haltAndCatchFire
   call :postStatus "canceled" %~1 >> "%logFile%"
   shutdown -s -t 0
  
positive.code: :: batch file
  @echo off
  
  if NOT EXIST "variables.bat" (
      :: No variable file defined
      shutdown -s -t 0
  )
  :: Source variables
  call variables.bat
  if NOT EXIST %reportURLFile% (
      :: No report URL file defined
      shutdown -s -t 0
  )
  if NOT EXIST %srcDir% (
      :: No source dir defined
      shutdown -s -t 0
  )
  
  
negative.code: call :executeCommand cd %dstDir%
  
  call :postStatus "building" "Compiling CCExtractor"
  rem Go to Windows build folder
  call :executeCommand cd windows
  rem Build CCExtractor using the sln script
  call :executeCommand "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild" ccextractor.sln
  rem check whether installation successful
  if EXIST Debug\ccextractorwin.exe (
      cd Debug
      rem Run testsuite
      call :postStatus "testing" "Running tests"
      call :executeCommand cd %suiteDstDir%
      call :executeCommand "%tester%" --entries "%testFile%" --executable "%dstDir%/windows/Debug/ccextractor" --tempfolder "%tempFolder%" --timeout 3000 --reportfolder "%reportFolder%" --resultfolder "%resultFolder%" --samplefolder "%sampleFolder%" --method Server --url "%reportURL%"
      call :postStatus "completed" "Ran all tests"
      rem Shut down
      shutdown -s -t 0
  )
  else
  