I am new to programming ( outside of DOS batch and AS400 CL ) and am trying to write a PHP script to stop and start a Windows service. The service name has spaces in it. I have tried the following
<?php system("net stop "Kiwi Syslog Daemon""); ?>
and
<?php system("net stop Kiwi Syslog Daemon"); ?>
If I use a one word service, like Apache, this works fine, but with the spaces, I get errors.
Can anyone help?
Thanks