skip to main content

Server Startup : Startup on Windows

Startup on Windows
In order to start the c-tree Server in foreground mode, launch ‘ctreesql.exe’. You can run it from the Windows Start menu: Start > Programs > c-treeRTGv#.# > c-treeACE Server
Unless the entry CONSOLE TOOL_TRAY is present in the ctsrvr.cfg file, the following panel will appear.
Otherwise, a new icon will appear in the system tray.
From the View menu you can hide the Message Monitor or show the Function Monitor (list of all internal functions called from clients). From the Control menu you can shut down the server. The same result is obtained by clicking on its window close button.
The c-tree Server can also be started from a command prompt by running the ctreesql.exe file installed in the c-treeRTG "Server\sql" folder. It is the same executable file pointed by the link mentioned above. The ctreesql executable file supports command-line parameters allowing to specify configuration options or a custom configuration file directly on the command-line; see ctreesql command-line for details.
Windows Service
In order to start the c-tree Server in background mode, you must create a service.
To install the service, start an MS-DOS prompt with Administrator privileges and run:
Note - "c-treeSQL" is just a suggested name, but any name can be used. The ctreesql.exe path might be different on your machine.
After it, you can optionally assign a description to the service as follows:
If the above commands are successful, you will find this new service available in the Service Control Manager:
You can manage the c-treeSQL service from the Service Control Manager or by running other sc commands in the MS-DOS prompt.
For more information about the sc command, refer to Microsoft documentation: https://technet.microsoft.com/en-us/library/bb490995.aspx.
To remove the service from the system, use this command:

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left