Service Status not set

Discuss RoboTask here
Post Reply
datroubler
Posts: 9
Joined: Thu Oct 18, 2012 8:58 am

Service Status not set

Post by datroubler »

I would like to get the status of a service and if the service is not running he should be started. The output looks like this:
tv.PNG
tv.PNG (9.51 KiB) Viewed 7771 times
My impression is that the variable is not set correctly in the first step.
netset.PNG
netset.PNG (95.08 KiB) Viewed 7771 times

This is the whole script:
Get status of TeamViewer8 service...zip
(716 Bytes) Downloaded 1111 times
I hope I provided enough information.
The Service is installed on the System I choose it from the Dropdown list.
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Service Status not set

Post by Oleg »

You should specify only variable name: ServiceStatus without braces (not {ServiceStatus})

You should use braces "{}" when you need to put variable value into the string.
Braces tells to RoboTask that it's necessary to replace this substring with value of variable.
Oleg Yershov
Post Reply