<< Click to Display Table of Contents >> Navigation: 3. Script Language > NT Service commands > Service Commands |
MiniRobotLanguage (MRL)
FES. Enumeration Command
For each Service
Intention
Enumerate system services. Using FES. your Skript can go "through all services" and check them "one by one" for whatever conditions you want.
Syntax
FES.P1|P2[|P3][|P4][|P5]
Parameter Explanation
P1 - Label where the for each will jump "for each element"
P2 - Temp. Variable, updated by FEX each round.
P3 - (optional) Flags:
"a" - enum and pattern by display name, else use service name
"b" - enum SERVICE_RUNNING
"c" - enum SERVICE_STOPPED
"d" - enum SERVICE_PAUSED
"e" - enum SERVICE_CONTINUE_PENDING
"f" - enum SERVICE_STOP_PENDING
"g" - enum SERVICE_PAUSE_PENDING
"h" - enum SERVICE_START_PENDING
You can use any combination of the above flags. The flags can be given in any order.
P4 - (optional) optional Standard Search Pattern
P5 - (optional) PC-Name, if omitted local machine is used.
Example
'**********************************************
' FES. usingtwo flags
'**********************************************
'
FES.doit|$$TXT|ac
ENR.
:doit
DBP.$$TXT
RET.
ENR.
Remarks
FEM. is a Member of the FEX-Family "For Each X". They are used for easy enumeration
Limitations:
-
See also:
• 3.1 Systemvariables especially: #fex#, #fxd# . etc.
• FEV. - For-Each-Variable(-Line)
• ISI. / NSI. - If Service Installed