Hi Peter,
in CP/M, I do not know any system function able to automatically read a .CFG file, in order to modify a .COM file.
I used .CFG files a couple of times, to customize the behavior of certain executables.
Example: for my TE.COM text editor, I recently added the possibility to have a TE.CFG file, read at the TE's startup, to configure the editor screen size (rows, columns).
For TE.CFG loaded with the following contents:
T4
H60
W120
, when using:
>TE64 test.txt
, the screen will be configured as 60 lines x 120 cols, with TAB positions = multiple of 4.
Of course, specifying an option in the command line has precedence, e.g.:
>TE -w140 -h50 test.txt
, will open test.txt using an 140 x 50 screen, regardless on TE.CFG is present or not.
Ladislau