This section describes each of the command line commands and the available options
associated with these commands.
Snapshot (command line)
The snapshot command takes a snapshot
of a live object and records the objects and properties in a snapshot database file.
The snapshot can later be compared to live objects or more snapshots. All snapshots
are saved into the default snapshot location as configured using the Options
dialog in the GUI.
Syntax:
differ.cmd.exe /snapshot <config file>
/v
The config file is used by Object Compare to locate the desired object for the action,
and is generated using the Tools menu from the GUI.
The /v switch writes verbose information
to stdout as the snapshot progresses.
This command can be automatically generated from the GUI by using the Tools
menu.
Treecompare (command line)
The treecompare command performs a
workspace comparison from the command line. All object properties containing differences
are written to stdout as the comparison executes.
Syntax:
differ.cmd.exe /treecompare <workspace>
/lr /v
The workspace parameter is the path and filename of a previously saved workspace
in the GUI. If the path or filename contains spaces, then enclose the parameter
in double quotation marks.
The /lr switch instructs the command
to list the rule settings to stdout before the comparison starts. When combined
with the /v switch, detailed rule
information is included.
The /v switch writes verbose information
to stdout as the comparison progresses.
This command can be automatically generated from the GUI by using the Tools
menu.