Commands & Syntax > Commands > System >

www.perfectkeyboard.com

 

WINDOWS SERVICE - < winsvc >() ... [Pro]

 

WINDOWS SERVICE
<winsvc>("Service Name","Command")
Available in: Professional edition

The command changes state of a Windows service.
Note: This command requires the program to run with "Administrator privilages"

 

#

Parameter name

Parameter description

1

Service Name

The Windows service name

2

Command

Command to change the Windows service state:
"START" - starts the service.
"STOP" - stops the service.

 

Example (Macro Steps):

 

1

<#> <#>This macro shows how to use "if_winsvc" and "winsvc" commands

2

Macro execution: ONLY COMMANDS

3

IF WINDOWS SERVICE "WebClient" is "NOT running" then execute following steps

4

WINDOWS SERVICE "WebClient", Command="Start"

5

ENDIF

Example (Plain Text):

 

<#>This macro shows how to use "if_winsvc" and "winsvc" commands

<cmds>

<if_winsvc>("WebClient","IS_NOT_RUNNING")

   <winsvc>("WebClient","START")

<endif>