in reply to I need to write a script which should start and stop a service in a windows server

Not a Perl-related question. Anyway, look at http://technet.microsoft.com/en-us/library/cc754599%28WS.10%29.aspx and system if you need to.
Sorry if my advice was wrong.
  • Comment on Re: I need to write a script which should start and stop a service in a windows server