ContentsIndexPreviousNext

8.5.5 acuodbcs -query

"acuodbcs -query" is for Windows NT and Windows 2000 servers only. It allows you to query whether or not the specified Windows service is installed.

Optional arguments to "-query" include:

Option Description
server Specifies the name of the server machine. If no server is specified, the server is assumed to be the local host.
-n portnum Identifies a particular instance of the acuodbcs program by port number. The "-n" must be followed by a space and then an integer, e.g., "6524". If no port number is specified, the default port (which has the service name "AcuODBCS") is removed.

When you enter this option, you receive a message stating whether or not the service is installed, and if it is, whether or not the service is currently running. The "-query" command also displays the startup parameters that have been stored for the service, if any. For example:

C:\Acucorp\Acucbl520\AcuGT\bin>acuodbcs -query
Service 'AcuODBCS' (AcuODBCS 5.2 on the default port (20222)) exists
Start Up: Automatic
Program: 'C:\Acucorp\Acucbl520\AcuGT\bin\acuodbcs.exe'
No Startup arguments stored, using default: ''
Status: not running
C:\Acucorp\Acucbl520\AcuGT\bin>

Note that the startup arguments listed are the arguments used to install the service, and not the arguments given to the currently running server.