in reply to Re: Want to Start / Stop windows service through executing Perl Script
in thread Want to Start / Stop windows service through executing Perl Script

Thanks a lot BrowserUk for your solution. I am able to get desired output succesfully with ur comments. I would also like to enhance my this script. I would now like to go to remote level, I mean to say I would like to Start / Stop service running on other machine, by running script on my desktop machine. Can you please help me wayout?
  • Comment on Re^2: Want to Start / Stop windows service through executing Perl Script

Replies are listed 'Best First'.
Re^3: Want to Start / Stop windows service through executing Perl Script
by BrowserUk (Patriarch) on Jun 01, 2009 at 13:43 UTC
Re^3: Want to Start / Stop windows service through executing Perl Script
by marto (Cardinal) on Jun 01, 2009 at 11:55 UTC

    Did you look at the help for the net command? Did you search google? Perhaps the sc command is also of interest. Note that sc comes as standard on xp, Windows 2003 (and I believe above), it may be on one of the resource CDs for windows 2000/NT4

    Martin