The config.exe
file can be used with the
following options:
Table 8.1. Off-line configurator options
Option | Description |
---|---|
-? | It displays the program version and the program usage instruction. |
-cFile | It allows to specify the name of the configuration file. If
omitted, the assumed name is drivers.cfg . If
'-pPath' is specified too, the specified directory path is
used. |
-pPath | It allows to specify the directory path. |
-cc | It allows to create the configuration file only if it does not exist; otherwise the existing file is used. If '-cFile' is specified too, the specified file name is used. If '-pPath' is specified too, the specified directory path is used. |
-cu | It allows to create the configuration file unconditionally.
If drivers.cfg exists, it's deleted and a new
drivers.cfg file is created. If '-cFile' is
specified too, the specified file name is used. If '-pPath' is
specified too, the specified directory path is used. |
-iFile | It allows to specify an input file from which the program will get the commands. |
-oFile | It allows to specify an output file on which the program will copy the result of executed commands. |
Tip | |
---|---|
These options are available by executing the program from a MS-DOS shell. |
The configurator can execute scripts using the “-i” option. A script contains one command per line. For example:
d r a r pr:1 in:telnet out:telnet cdi:* udi:tln a r pr:2 in:* out:telnet cdi:* udi:tln d r quit y
The example shows how to have the config.exe
program to execute the previously listed commands, stored in the
BatchCom.txt
file:
C:\> config -iC:\BatchCom.txt
<enter>
Here it's the execution result:
- CONFIG (Off-line configurator for Abilis CPX) - v. 2085 - 19/02/2015 - - Abilis CPX - Ver. 8.0.2 - Build 3961.6 - Branch 8.0 - - (c) 1994/2015 - Abilis - Press ALT-F9 to cycle between 80x25, 80x43, 80x50 screen modes. Logged as SUPERUSER [16:24:21] ABILIS_CPX:d r
---+--------+--------+---------------+---------------+------------+------------ PR |IN |OUT |CDI |CDO |UDI |UDO |NEXT |CGI |CGO |PIDI |PIDO | |IPSRC |IPDEST |FFO ------------------------------------------------------------------------------- 0 * Cp * * CP * ------------------------------------------------------------------------------- [10:28:15] ABILIS_CPX:a r pr:1 in:telnet out:telnet cdi:* udi:tln
COMMAND EXECUTED [10:28:27] ABILIS_CPX:a r pr:2 in:* out:telnet cdi:* udi:tln
COMMAND EXECUTED [16:28:31] ABILIS_CPX:d r
- Not Saved (SAVE CONF) ------------------------------------------------------- ---+--------+--------+---------------+---------------+------------+------------ PR |IN |OUT |CDI |CDO |UDI |UDO |NEXT |CGI |CGO |PIDI |PIDO | |IPSRC |IPDEST |FFO ------------------------------------------------------------------------------- 0 * Cp * * CP * ------------------------------------------------------------------------------- 1 Telnet Telnet * * TLN * ------------------------------------------------------------------------------- 2 * Telnet * * TLN * ------------------------------------------------------------------------------- [17:29:15] ABILIS_CPX:quit
THE CURRENT CONFIGURATION WAS MODIFIED BUT NOT SAVED. PROCEED WITH 'SAVE CONF' COMMAND (N/Y/A)?y
VALIDATION IN PROGRESS ... VALIDATION SUCCESSFULLY EXECUTED SAVE EXECUTED [17:29:21] ABILIS_CPX:exit
Program exits.
Using the “-o” option, the off-line configurator redirects the standard output to a text file:
C:\> config -o C:\Output.txt<enter>
Suppose to enter the d ver command to the
off-line configurator command line interpreter after the previous line
execution. A copy of the program output will be saved in text format in
the specified file. Here it's the contents of
Output.txt
file:
- CONFIG (Off-line configurator for Abilis CPX) - v. 2085 - 19/02/2015 - - Abilis CPX - Ver. 8.0.2 - Build 3961.6 - Branch 8.0 - - (c) 1994/2015 - Abilis - Press ALT-F9 to cycle between 80x25, 80x43, 80x50 screen modes. Logged as SUPERUSER [16:24:21] ABILIS_CPX:d ver
Abilis CPX - Ver. 8.0.2 - Build 3961.6 - Branch 8.0 - 01/04/2015 CONFIG - v. 2085 - 19/02/2015 (c) 1994/2015 - Abilis CX : v. 2763.3 - 06/03/2015 CP : v. 6293.10 - 01/04/2015 COR : v. 2051 - 02/03/2015 CNFG : v. 4796.6 - 01/04/2015 COMMON : v. 3747.6 - 18/03/2015 [16:30:19] ABILIS_CPX:exit
Program exits.