Overview | Using SYSGEN | The INI file | The CFG file | Quick reference | Index

 

The CFG File

 

When SYSGEN processes the INI file, it creates individual configuration files (CFG files), one for each node. The CFG files are named to match the NODE names in the INI file.

 

For example, suppose the INI file looked like this:

 

.

.

.

[NODE]

Name = SALES

.

.

.

[NODE]

Name = PAYROLL

.

.

.

[NODE]

Name = SHIPPING

.

.

.

 

In this case, the SYSGEN program would create the following CFG files:

 

SALES.CFG

PAYROLL.CFG

SHIPPING.CFG

 

Make sure that these files are present in the current directory (startup directory). This directory can be any directory on a single-user machine or a network server. For networked Comet systems, we recommend placing the CFG files in a common directory on the file server such as:

 

f:\comet

 

Next, create a desktop shortcut to cosw.exe with the following properties:

 

Target: f:\comet\Cosw.exe /PN=NODENAME
Start In: f:\comet

 

where NODENAME is the name of this particular node as defined in the COMET.INI file.

 

In the case of the 3-node example above, this would mean 3 shortcuts, placed on 3 separate machines, with the following properties:

 

Target: f:\comet\Cosw.exe /PN=SALES
Start In: f:\comet

 

Target: f:\comet\Cosw.exe /PN=PAYROLL
Start In: f:\comet

 

Target: f:\comet\Cosw.exe /PN=SHIPPING
Start In: f:\comet

 

Then when someone uses one of these shortcuts, Windows will launch Comet (cosw.exe) and read the associated CFG file.

 

Note

 

A typical Comet user will have a single Comet shortcut on their desktop, one that launches Comet and reads their particular CFG file. However, there are no restrictions on the number of Comet shortcuts that may be placed on the desktop, and some users might find it useful to have more than one. In such a situation, each shortcut could refer to a different CFG file. This would allow a user to start Comet with one configuration, exit from Comet, and start Comet again with another configuration. (Multiple shortcuts would also provide someone with the ability to launch Comet locally while simultaneously launching a CometAnywhere remote session.) Admittedly, this type of flexibility may not be for everyone, but we wanted to point out that its available for those who need it.