How does this code relate to the problem at hand?
But as you're already using WMI, you can just use the service objects to start/stop the service. Just call ->StartService or ->StopService on the service respectively.
In reply to Re^5: Want to Start / Stop windows service through executing Perl Script
by Corion
in thread Want to Start / Stop windows service through executing Perl Script
by meet_arc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |