How do I load Cogent DataHub configuration files from a user defined location?
I am using the Cogent DataHub and I want to specify a location for it to look for the configuration files. How can this be done?
By default the Cogent DataHub will store the configuration files at the location below.
C:\Users\[USERNAME]\AppData\Roaming\Cogent DataHub
This does mean that each user that logs into the computer will create a separate set of configuration files. There is a way to change the path the Cogent DataHub uses to store the configuration files. That is done by creating a shortcut and using the "-H home_path" command line option. Where home_path is the full path to the folder where your DataHub configuration files are stored.
- Create a shortcut to CogentDataHub.exe
- Right-click and go to the Properties of the shortcut.
- Change the Target to include the "
-H home_path".
Example:
"C:\Program Files (x86)\Cogent\Cogent DataHub\CogentDataHub.exe" -H "C:\temp\Cogent DataHub"
In the example above, the configuration files are being stored in the "C\temp\Cogent DataHub" directory.
If you have different sets of configuration files for different locations or different customers, you can create multiple shortcuts that each use a unique directory. This will allow you to easily switch what configuration your DataHub uses when it launches.