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.
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.