anchor.diff:  :#                  Conversely add DOS path when running on an x86 processor. #
   :#                  Display the result path list just once in the end.        #
   :#                  Added option -r to remove all my personal paths.          #
  +:#   2020-02-24 JFL Use the new paths.bat, instead of the old addpath.bat.    #
   :#                                                                            #
   :#          Copyright 2016 Hewlett Packard Enterprise Development LP         #
   :# Licensed under the Apache 2.0 license  www.apache.org/licenses/LICENSE-2.0 #
   :##############################################################################
   
   setlocal EnableExtensions EnableDelayedExpansion
  -set "VERSION=2018-12-21"
  +set "VERSION=2020-02-24"
   set "SCRIPT=%~nx0"
   set "SPATH=%~dp0" & set "SPATH=!SPATH:~0,-1!"
   set "SDRV=%~d0"
  
positive.code: 
  :Add1Path.Init
  :# Look for addpath.bat in the same directory as this script
  set "ADDPATH=%SPATH%\addpath.bat"
  :# Else look for addpath.bat in the PATH
  if not exist "%ADDPATH%" for %%I in (addpath.bat) do set "ADDPATH=%%~$PATH:I"
  :# If it's not there either, report the error
  if not defined ADDPATH >&2 echo Error: Can't find addpath.bat & exit /b 1
  :# Note: Even if addpath.bat is in the PATH, do not use its unqualified name,
  :# because this would break during paths removal.
  goto :eof
  
  :Add1Path
  set "RETCODE=0"
  if exist "%~1" (
    %CALL% %ADDPATH% -q    "%~1"
    if errorlevel 1 set "RETCODE=1"
    %CALL% %ADDPATH% -q -s "%~1"
    if errorlevel 1 set "RETCODE=1"
  )
  exit /b %RETCODE%
  
negative.code: %IF64% call :Add1Path "%SPATH%\Win64"			&:# Windows 64-bits tools
         call :Add1Path "%SPATH%\Win32"			&:# Windows 32-bits tools
         call :Add1Path "%SPATH%"				&:# Other types of Windows programs and scripts
  %IF32% call :Add1Path "%SPATH%\DOS"			&:# DOS 16-bits tools. Must be AFTER "%SPATH%", as there's another paths.bat there for DOS only.
  %IF64% call :Add1Path "%SPATH%\ezWinPorts\Win64\bin"	&:# Unix tools 64-bits ports from ezwinports.sourceforge.net
         call :Add1Path "%SPATH%\ezWinPorts\Win32\bin"	&:# Unix tools 32-bits ports from ezwinports.sourceforge.net
         call :Add1Path "%SPATH%\UnxUtils\usr\local\wbin"	&:# Unix tools ports from unxutils.sourceforge.net
  