<< Click to Display Table of Contents >> Navigation: 3. Script Language > NT Service commands > Service Commands |
MiniRobotLanguage (MRL)
ISI. Conditional Statement
If Service installed
Intention
This command can be used to verify if a System Services is installed. You can check if a service is available on a specified (local?) computer system.
To specify a service you will need to give the "service name". Please see
How to get the proper service name
on which choices you have to specify the service you want to deal with, in a way that it will really work for you, as expected.
ISI.wsearch|mypc
DBP.service is available
ELS.
DBP.no such service on mypc
EIF.
' Display Error if we got one
DBP.$$000
ENR.
To uninstall a Service use the
SER.uni|sn|pc-name
command.
Syntax
ISI.P1[|P2]
NSI.P1[|P2]
Parameter Explanation
P1 - Service-Name
P2 - (optional) Computer-Name or empty. In that case the local computer is used.
What happens in case of an error?
If the specified service is not found, the Error-Message "Error: No such service." is been placed on TOS and the condition is evaluated to FALSE..
In case there are other errors during the processing of the command, the error-message is been placed on TOS and the condition is evaluated to FALSE.
The error-message will always be prefixed with an "Error: " to indicate that it is an error from the services-engine.
Here is an example for such an error-message:
"Error: The requested access to the services database was denied."
Example
'**********************************
' ISI.
'**********************************
ISI.dn:yah
DBP.service is available
ELS.
DBP.no such service
EIF.
' Display Error if we got one
DBP.$$000
ENR.
'**********************************
Remarks
-
Limitations:
-
See also: