anchor.diff:  
   :x64
   SET "LIB=%WDKBASEDIR%\lib\crt\amd64;%WDKBASEDIR%\lib\win7\amd64"
  -SET "FPATH=%WDKBASEDIR%\bin\x86;%WDKBASEDIR%\bin\x86\amd64;%SDKDIR%\Bin"
  -SET "PATH=%FPATH%"
  +SET "PATH=%WDKBASEDIR%\bin\x86;%WDKBASEDIR%\bin\x86\amd64;%SDKDIR%\Bin"
   
   IF /I "%ARCH%" == "x86" GOTO :END
   
  
positive.code: IF /I "%1" == "/Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
  IF /I "%1" == "-Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
  IF /I "%1" == "--Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
  IF /I "%1" == "x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
  IF /I "%1" == "/x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
  IF /I "%1" == "-x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
  IF /I "%1" == "--x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
  IF /I "%1" == "x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
  IF /I "%1" == "/x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
  IF /I "%1" == "-x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
  IF /I "%1" == "--x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
  IF /I "%1" == "all" SET ARCH=all&&GOTO :CHECKSECONDARG
  IF /I "%1" == "/all" SET ARCH=all&&GOTO :CHECKSECONDARG
  IF /I "%1" == "-all" SET ARCH=all&&GOTO :CHECKSECONDARG
  IF /I "%1" == "--all" SET ARCH=all&&GOTO :CHECKSECONDARG
  ECHO.
  ECHO:"%1": Unsupported commandline switch!
  ECHO:Run "build.cmd help" for details about the commandline switches.
  CALL :SUBMSG "ERROR" "Compilation failed!"
  
  
  :CHECKSECONDARG
  REM Check for the second switch
  IF "%2" == "" SET ARCH=all&&GOTO :START
  IF /I "%2" == "x86" SET ARCH=x86&&GOTO :START
  IF /I "%2" == "/x86" SET ARCH=x86&&GOTO :START
  IF /I "%2" == "-x86" SET ARCH=x86&&GOTO :START
  
negative.code: ECHO.
  ECHO.
  ECHO:Executing "build.cmd" will use the defaults: "build.cmd build all"
  ECHO:If you skip the second argument the default one will be used. Example:
  ECHO:"build.cmd rebuild" is equivalent to "build.cmd rebuild all"
  ECHO:NOTE: "build.cmd x86" won't work.
  ECHO.
  ENDLOCAL
  EXIT /B
  
  :CHECKFIRSTARG
  rem Check for the first switch
  IF "%1" == "" (
  SET BUILDTYPE=Build
  ) ELSE (
  IF /I "%1" == "Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
  IF /I "%1" == "/Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
  IF /I "%1" == "-Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
  