
COMPREG
=============================================================================
A Win32 character-based/commandline 'registry diff' enabling you to compare
any 2 local and/or remote registry keys both on Windows NT or Windows 95
systems.

USAGE
=============================================================================
usage: COMPREG <1> <2> [-v] [-r] [-e] [-d] [-q] [-n] [-h] [-?]

<1> <2>  local or remote keys to compare (default root == HKEY_CURRENT_USER)
         (eg : \\HOTDOG\HKEY_LOCAL_MACHINE\Software)
         The rootkeys can be abbreviated as follows : HKEY_LOCAL_MACHINE - lm,
         HKEY_CURRENT_USER - cu, HKEY_CLASSES_ROOT - cr, HKEY_USERS - us.
         If the 2nd argument is only a computername, the keyname specified
         with the 1st argument will automatically be appended.

-v        Verbose. Prints both differences and matches.
-r        Recurse into 'dead' trees, that is, subkeys that only exist in 1 key.
-e       Sets errorlevel to the last errorcode. By default, errorlevel is set
          to the number of differences that were found.
-d       Doesn't print the value data (just the keys).
-q       Very quiet.  Just prints the number of differences.
-n       No color in output (default: use color)
-h       Displays additional help.
-?       Displays this usage screen.

Examples :

COMPREG "\lm\system\currentcontrolset\control\session manager" \\MOON

COMPREG HKEY_CURRENT_USER\Cheech HKEY_CURRENT_USER\Chong

COMPREG "\lm\system\currentcontrolset\control\session manager" \\MOON

1 \Environment!Cpu REG_SZ,[i386]

1 \Memory Management!PagingFiles REG_MULTI_SZ,[C:\pagefile.sys 20|]
2 \Memory Management!PagingFiles REG_MULTI_SZ,[D:\pagefile.sys 43|]

2 !RegisteredProcessors REG_DWORD,[4]
End of search : 3 differences found.

The output consists of blocks of lines. Each block describes 1 difference.
Each line starts with a 1 or a 2 (indicating the key), followed by the key or
valuename (preceded by a '!') and possibly the value type and data.
Lines starting with an 'X' indicate values and subkeys that exist in both keys.

Blocks containing 1 line indicate that a particular subkey or value is only
present in that particular key. Blocks containing 2 lines indicate a
difference in value type or data.

In the example above, the 1st block indicates that the 'Cpu' value under the
subkey 'Environment' is only present on my own machine. The 2nd block
indicates that the PagingFiles on \\MOON are located on a different drive.

NOTES
=============================================================================
1 Current version = 1.01 ( 08-Nov-1995 / 34816 )

2 Due to a feature of Windows 95, color settings in the output may become
  garbled when the screen is scrolled. If this annoys you, use the -n option
  to disable the use of color in the output.

3 CompReg was developed by Ruud van Velsen of Microsoft Benelux. The program
  is not officially supported by Microsoft, but any feedback is welcome.
