anchor.diff:  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: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
  +rem Check for the second switch
  +IF "%2" == "" (
  +SET ARCH=all
  +) ELSE (
   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
  
positive.code: IF /I "%2" == "/all" SET ARCH=all&&GOTO :START
  IF /I "%2" == "-all" SET ARCH=all&&GOTO :START
  IF /I "%2" == "--all" SET ARCH=all&&GOTO :START
  IF /I "%2" == "Build" SET BUILDTYPE=Build&&GOTO :START
  IF /I "%2" == "/Build" SET BUILDTYPE=Build&&GOTO :START
  IF /I "%2" == "-Build" SET BUILDTYPE=Build&&GOTO :START
  IF /I "%2" == "--Build" SET BUILDTYPE=Build&&GOTO :START
  IF /I "%2" == "Clean" SET BUILDTYPE=Clean&&GOTO :START
  IF /I "%2" == "/Clean" SET BUILDTYPE=Clean&&GOTO :START
  IF /I "%2" == "-Clean" SET BUILDTYPE=Clean&&GOTO :START
  IF /I "%2" == "--Clean" SET BUILDTYPE=Clean&&GOTO :START
  IF /I "%2" == "Rebuild" SET BUILDTYPE=Rebuild&&GOTO :START
  IF /I "%2" == "/Rebuild" SET BUILDTYPE=Rebuild&&GOTO :START
  IF /I "%2" == "-Rebuild" SET BUILDTYPE=Rebuild&&GOTO :START
  IF /I "%2" == "--Rebuild" SET BUILDTYPE=Rebuild&&GOTO :START
  ECHO.
  ECHO:"%2": Unsupported commandline switch!
  ECHO:Run "build.cmd help" for details about the commandline switches.
  CALL :SUBMSG "ERROR" "Compilation failed!"
  
  
  :START
  IF /I "%BUILDTYPE%" == "" SET BUILDTYPE=Build
  IF /I "%ARCH%" == "" SET ARCH=all
  IF /I "%BUILDTYPE%" == "Clean" GOTO :x86
  PUSHD ..
  CALL "update_version.bat"
  POPD
  
negative.code: :x86
  SET "INCLUDE=%WDKBASEDIR%\inc\crt;%WDKBASEDIR%\inc\api;%WDKBASEDIR%\inc\api\crt\stl60;%WDKBASEDIR%\inc\ddk"
  SET "LIB=%WDKBASEDIR%\lib\crt\i386;%WDKBASEDIR%\lib\win7\i386"
  SET "PATH=%WDKBASEDIR%\bin\x86;%WDKBASEDIR%\bin\x86\x86;%SDKDIR%\Bin"
  
  IF /I "%ARCH%" == "x64" GOTO :x64
  
  