anchor.diff:  
   :LocalPath.Add1 %1=path to add to %PATHVAR%
   setlocal EnableExtensions EnableDelayedExpansion
  -if "%DEBUG%"=="1" echo call %0 %*
  +%ECHO.D% call %0 %*
   :# First check if the path to add was already there
   set "VALUE=!%PATHVAR%:;;=;!"	&:# The initial paths list value
   set "VALUE2=;!VALUE!;"		&:# Make sure all paths have a ; on both sides
  
positive.code: :MasterPath.Set
  set "SETX="
  for /f %%i in ("setx.exe") do set "SETX=%%~$PATH:i"
  if not "%SETX%" == "" ( :# If setx.exe is in the PATH, then use it. (Preferred)
    :# Gotcha: regex.exe does interpret a trailing \" as escaping the "
    if "!MPATH:~-1!"=="\" set "MPATH=!MPATH!\"
    :# setx.exe updates the %PATHVAR%, and _does_ broadcast a WM_SETTINGCHANGE to all apps
  
negative.code: if "%~1"=="-a" set "METHOD=Add" & set "VALUE=%~2" & goto :next_2nd_arg
  if "%~1"=="-b" set "WHERE=before" & set "BEFORE=%~2" & goto :next_2nd_arg
  if "%~1"=="-c" set "OBJECT=LocalPath" & goto :next_arg
  if "%~1"=="-d" call :Debug.on & goto :next_arg
  if "%~1"=="-h" set "WHERE=head" & goto :next_arg
  if "%~1"=="-l" set "METHOD=Echo" & goto :next_arg
  if "%~1"=="-m" set "METHOD=Move" & set "VALUE=%~2" & goto :next_2nd_arg
  