Results 1 to 3 of 3

Thread: start/stop windows service from batch

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Slovenia
    Posts
    40

    start/stop windows service from batch

    Hi

    Does anybody know how to start or stop windows service from batch programm in WIN XP.

    Thank's
    Tomaz

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611
    net start "Name Of Service"
    net stop "Name Of Service"

    Put one of both line in a batch-file and the service will start/stop
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  3. #3
    Fanatic Member cid's Avatar
    Join Date
    Nov 2002
    Location
    Fort Worth, Texas
    Posts
    854
    or try....Taskkill

    It works remotely as well...It is funny shutting down someones explorer over a network.

    www.google.com - Pay Tribute.

    Always Listening To: Thrice

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width