The DataHub program uses multiple configuration files. When the program is first
started it creates its primary configuration file, Cogent DataHub.cfg,
along with other .cfg files that correspond to various DataHub
plug-ins. These files get edited automatically when you make changes to features in
the Properties window. When you shut down and restart a DataHub instance, it reads and
uses the last saved configuration from each file.
There are two syntaxes used in DataHub configuration files. DataHub Command syntax is used in some, and XML syntax is used in others, depending on the complexity of the corresponding plug-in, and its implementation. Occasionally an experienced user might have reason to edit a configuration file directly, but in general modifications should be made through the Properties window.
DataHub configuration files are stored as UTF-8 text, without a byte-order marker (BOM). If you do choose to edit a DataHub configuration file, ensure that your text editor is storing the file in this format. The presence of BOM characters will cause the configuration file to fail. Also, if you choose to edit a DataHub configuration file, whether by hand or through a text generation program, it is good practice to stop the DataHub program before modifying the file.
The DataHub program stores its configuration and license
(licenses.lic) files in the current user's directory,
in a subdirectory named Cogent DataHub. You can find its
configuration path in the DataHub About panel, by clicking the
About button in the DataHub Properties window.

Here are the typical locations:
For Windows Vista, Windows 7, 8, 9, or 10, or Windows Server 2008, 2012, or 2016:
C:\Users\UserName\AppData\Roaming\Cogent DataHub\For Windows XP and Windows Server 2003:
C:\Documents and Settings\User Name\Application Data\Cogent DataHub\
![]() | |
If you ever need to back up or move the DataHub configuration, please refer to Section 1.9, “Backing Up or Moving a DataHub Installation”. |
![]() | |
The |
If there is no private configuration when a DataHub instance starts, it will search for configuration files and license files from previous versions in the application installation directory, and copy them to the user's private configuration. If there are no old configuration files, the DataHub instance will copy all the current configuration files from the application installation directory. Thereafter, changes to the DataHub program's properties (made through the Properties window) will only change the user's private configuration.
You can modify this behaviour in two ways with the following command line options:
Provide the -H option
which will indicate to DataHub program that it should store the private
configuration and license files in the directory specified by
home, rather than
in a subdirectory of homeApplication Data. The DataHub
program will still search for previous and default configuration files
and licenses in the application installation directory as described
above.
Provide the -U option which will indicate to the DataHub
program that it should not create private configuration files for each
user, but store its configuration in the application installation
directory.
If both -H and -U are specified, the
-U flag is ignored.
You can also set the configuration folder globally using the DataHub Service Manager, even if the DataHub software is not installed as a Windows service. Here's how:
Open the DataHub Service Manager.
Click the button .
Type or browse to the folder you want to use for configuration, and click .
Close the DataHub Service Manager window.
Start a DataHub instance normally.
This should result in a DataHub instance using the specified folder as its
configuration folder whenever it is started without the -H option.