anchor.diff:  :# Non-recursive show. %1=Parent key pathname.
   :show
   :showdir
  +:dump
  +:dumpdir
   %FUNCTION% EnableExtensions EnableDelayedExpansion
   set "KEY=%~1" & shift
   %ECHOVARS.D% KEY
  
positive.code:     :# Extract the value name as the first item before the first TAB.
      :# Names can contain spaces, but assume they don't contain TABs.
      for /f "tokens=1,2* delims=	" %%j in ("!TOKENS!") do (
        set "NAME=%%j"
        if "!NAME!"=="(Default)" set "NAME="
        set "TYPE=%%k"
        set "VALUE=%%l"
        echo !NAME!/!TYPE!/!VALUE!
      )
    )
  )
  %RETURN% %ERROR%
  
  :# List sorted values. Args: [-c] [-p PATTERN] [-v] [-cb CALLBACK] KEY [RETVAR]
  :values
  :files
  %FUNCTION% EnableExtensions EnableDelayedExpansion
  
negative.code: call :set "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\LastKey" "%COMPUTER%\!KEY!" >NUL
  %EXEC% start /b regedit
  %RETURN%
  
  :#----------------------------------------------------------------------------#
  
  :# Test a number of tricky cases
  :test
  call :CondQuote ARG0
  echo -----------------------------------------------------------
  echo A key with subkeys containing the %% character:
  %EXEC% call %ARG0% dirs HKCU\Console
  echo.
  echo -----------------------------------------------------------
  echo A key with data containing the %% character:
  %EXEC% call %ARG0% show HKCU\Environment
  echo.
  echo -----------------------------------------------------------
  echo A key with subkeys containing the ^^ character:
  %EXEC% call %ARG0% dirs "HKCU\Control Panel\Desktop\PerMonitorSettings"
  echo.
  echo -----------------------------------------------------------
  echo A key with data containing the ^^ character:
  %EXEC% call %ARG0% show "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Extensions"
  echo.
  echo -----------------------------------------------------------
  echo A key with subkeys containing the ^^^! character:
  %EXEC% call %ARG0% dir HKLM\SOFTWARE\Microsoft\DirectDraw\Compatibility
  echo.
  echo -----------------------------------------------------------
  echo A key with subkeys containing the ^^^! character:
  %EXEC% call %ARG0% show "HKCR\Acrobat.aaui\shell\Open\command"
  exit /b
  
  :#----------------------------------------------------------------------------#
  :#                                                                            #
  