anchor.diff:      goto :EOF
   )
   
  -echo You need all of: %patchlist%
  -
  -
  -echo Scanning for patches...(takes a minute)
  +echo Complete patchlist: %patchlist%
  +
  +echo Scanning Windows database for patches...(takes a minute)
   
   set foundlist=
   
  
positive.code: @echo off
  
  setlocal enableextensions enabledelayedexpansion
  
  set msdownloadpath=https://download.microsoft.com/
  set mypathname=%~f0
  
negative.code:     if errorlevel 1 set missinglist=!missinglist! %%a
  )
  
  set haveslist=
  set haverlist=
  set haveulist=
  
  if "X%foundlist%" == "X" goto havenothing
  
  for /F "usebackq" %%a in (`findstr /R "^./download/" "%mypathname%" ^| findstr /I "%winversion%" ^| findstr /I "%winarch%" ^| findstr /I "%foundlist%"`) do (
      echo %%a | findstr /R "^U/download/" > NUL
      if NOT errorlevel 1 set haveulist=%%a
      echo %%a | findstr /R "^R/download/" > NUL
      if NOT errorlevel 1 set haverlist=%%a
      echo %%a | findstr /R "^S/download/" > NUL
      if NOT errorlevel 1 set haveslist=%%a
  )
  
  if NOT "X%haveulist%"=="X" (
      echo You have the current Security only rollup. You're done!
      goto :EOF
  )
  
  if NOT "X%haverlist%"=="X" (
      echo You have the July 2016 rollup. You need the current Security only rollup...
      call :downloadfile U
      goto :EOF
  )
  
  if NOT "X%haveslist%"=="X" (
      echo You have one of the servicing stacks. You need the July 2016 rollup...
      call :downloadfile R
      goto :EOF
  )
  
  :havenothing
  
  echo You do not have anything so far. Start with the servicing stack...
  call :downloadfile S
  goto :EOF
  
  
  :downloadfile
  
  if "X%missinglist%"=="X" (
      echo All patches present! Should not happen!
      goto :EOF
  )
  
  for /F "usebackq" %%a in (`findstr /R "^%1/download/" "%mypathname%" ^| findstr /I "%winversion%" ^| findstr /I "%winarch%" ^| findstr /I "%missinglist%"`) do (
      set pullurl=%%a
  )
  
  if "X%pullurl%"=="X" (
      echo Something went wrong finding that patch
      goto :EOF
  )
  
  set pullurl=%msdownloadpath%%pullurl:~2%
  
  set pullurllocal=
  
  for /F "usebackq" %%a in (`echo %pullurl%`) do (
      set pullurllocal=%%~nxa
  )
  
  if "X%pullurllocal%"=="X" (
      echo Something went wrong separating the name!
      goto :EOF
  )
  
  echo The download url is: %pullurl%
  
  if not exist %bitsadmin% (
      echo Need bitsadmin.exe to download files so skipping this part
      goto :EOF
  )
  
  set /p downloadyn=Would you like me to download those patches for you?
  
  