Promodag Reports can be used in DOS command mode to run a batch file (PRB). The following text explains how tasks can be run in CLI mode.
REPEX /BatchFile=<batch file.prb>
REPEX: Path to the Repex.exe file. The default path is: C:\Program Files\Promodag\Reports14\Repex.exe.
<batch file.prb>: name of the batch file to run. You do not need to enter the full path.
Note: if you type REPEX without any argument, the program starts in GUI mode. A trace file is created when you use this command.
A return code displays in the Windows Task Scheduler. It can help troubleshoot batch configuration issues. Return codes can also be used in *.bat files.
| Code | Value | Meaning |
|---|---|---|
| OK | 0 | No problem detected |
| Warning | 1 | A warning was issued (no error) |
| Error | 2 | A non-fatal error occured |
| FatalError | 3 | A fatal error occurred |
| StartHelp | 4 | Help request in command line |
| BadConfigFile | 5 | The configuration file is incorrect |
| BadCommandLine | 6 | A command line parameter is incorrect |