Windows Services Monitoring

Started by mpa3b, May 28, 2007, 01:16:08 PM

Previous topic - Next topic

mpa3b

With System.ServiceState(*) no problem if instance contain one word, but if name contain two and more words, parametr don't return values

Alex Kirhenshtein

Such names should be wrapped in quotes: System.ServiceState("Ati HotKey Poller")

Also, you should use "service name", not "display name" (you can check them using "sc" command):

System.ServiceState("Bluetooth Support Service") will fail
System.ServiceState("BthServ") - works fine.

wbr, alex.