|
DTM Data Comparer supports following command line switches:
-r - if project configured, run compare at program startup
-s - if project configured, run synchronization at program startup
-c - console mode.
The console mode is a mode when the program doesn't open any dialogs and doesn't need any
interference from the user. A project for the console mode must be prepared and tested beforehand.
This mode enables you to integrate the product with the Windows task schedule system as well as to
execute projects prepared beforehand according to the schedule.
For example, in order to execute a project file today at 11.00, use the following command line:
at 11:00 "dcmp.exe -c -s"
Also you can use project name as a command line parameter. Please note that you should use quotation for path or filename with spaces:
dcmp.exe "D:\Projects And Files\test2testscr.dcmp"
Return codes
The program returns a few error codes in console mode:
- 0 - error occures, not enough parameters or nothong to compare/syncronize
- 1 - tables has been compared successfully, differences found
- 2 - tables are identical
How to use return codes? The user can use ERRORLEVEL environment variable in bacth file after the
program execution. ECHO.%ERRORLEVEL% line shows retun code and IF ERRORLEVEL can be used for execution branching.
|