Skip to content
  • There are no suggestions because the search field is empty.

Running the Cogent DataHub as a service and using the Install directory to store the configuration files

I am running the DataHub as a service and would like it to look in the DataHub's install directory for the configuration files rather than in C:\Documents and Settings\[USER NAME]\Application Data\Cogent DataHub. How can I accomplish this?

This is possible and the answer depends on the version you are using. 

v7.2.1 and Later

You can use the Service Manager. You can set the Configuration Path in the Service Manager.  Then you must restart the Service.

v7.2.0 and Earlier

First we must make sure the Cogent DataHub is installed as a service. 

  1. Go to "Start Menu ⇒ Programs ⇒ Cogent ⇒ Cogent DataHub ⇒ Install as a Service"
  2. Open a DOS command prompt and enter the following commands:
    sc stop "Cogent DataHub"

    sc config "Cogent DataHub" binPath= "c:\program files\cogent\cogent datahub\cogentdatahubv7.exe -H c:\program files\cogent\cogent datahub\configuration"

    sc start "Cogent DataHub"

There needs to be a space after the binPath= otherwise the command will fail, with no explanation why.

The Cogent DataHub will now look for and store its configuration file in the "c:\program files\cogent\cogent datahub\configuration" directory.