anchor.diff:    set "SUBDIR=%~1\lib"
   ) else (
     set "SUBDIR=%~1\lib\!WINSDKPROC!"
  +  :# Visual Studio 8 platform SDK had the library called AMD64 instead of x86 as in later WinSDKs
  +  if "!WINSDKPROC!"=="x64" if not exist "!SUBDIR!" set "SUBDIR=%~1\lib\AMD64" 
   )
   if exist "!SUBDIR!\kernel32.lib" (
     %ECHO.D% :# Found
  
positive.code: :# Version supporting input and output redirections, and pipes.
  :# Redirection operators MUST be surrounded by quotes. Ex: "<" or ">" or "2>>"
  :Exec
  setlocal EnableExtensions DisableDelayedExpansion
  :Exec.Start
  :# Save the initial errorlevel: Build a command for restoring it later
  set "Exec.RestoreErr=call :Exec.SetErrorLevel %ERRORLEVEL%"
  set "NOREDIR0=%NOREDIR%"
  set "Exec.Redir=>>%LOGFILE%,2>&1"
  if .%NOREDIR%.==.1. set "Exec.Redir="
  
negative.code: set "%VS%=" & set "%VC%=" & set "%VC%.BIN="
  :# The Visual C++ subdirectory can be named VC, VC98, or VC7 depending on the VS version.
  for %%s in (%~2) do (
    for %%p in (%PF64AND32%) do (
      for /d %%d in ("%%~p\%~3\VC*") do if exist "%%d\%%s\cl.exe" (
        set "%VS%=%%~dpd" &:# Remove the VC* subdir name
        set "%VS%=!%VS%:~0,-1!" &:# Remove the trailing '\'.
        set "%VC%=%%d"
        set "%VC%.BIN=%%d\%%s"
        set "%VC%.CC="%%d\%%s\cl.exe""
        exit /b 0
      )
    )
  )
  exit /b 1
  