SetServer
Specifies the name of the Datacap Server.
Member of namespace
Maintenance ManagerSyntax
bool SetServer (string server)Parameters
- server
- Type: string
Parameters
server: Server name. Smart parameters are supported.Returns
False if a server name is not specified. Otherwise, True.Level
Batch level.Details
The name of the Datacap server as it is defined in the application service, which will be the server used by subsequent Maintenance Manager actions. This will be the default value used for the action SetupOpenApplication.- Example:
-
SetApplication("APT") SetServer("Server 1") SetupOpenApplication("")
In order to recognize "Server 1" connection, edit the .app file and add
the "Server 1" tag. For
example:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<app name="APT" ver="7" modder="JosePablodelaRosaGut.MXL008725.WORKGROUP" dt="07/23/19 14:49:07.387 ">
<k name="tmservers">
<k name="tms" ip="127.0.0.1" port="2402" retry="3" protocol="300"/>
<k name="Server 1" ip="127.0.0.1" port="2402" retry="3" protocol="300"/>
</k>