Results 1 to 3 of 3

Thread: Windows Service - Stop and Start (RESOLVED)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Location
    Porto Alegre, RS
    Posts
    210

    Windows Service - Stop and Start (RESOLVED)

    How can i stop and start some service on my machine from VB.Net?

    I need to stop two services on my machine, before i do some stuff in my application, and after this, i need to start the services again.

    Any tips?

    Thank you,
    Guilherme Costa
    Last edited by gccosta; May 6th, 2004 at 03:24 PM.

  2. #2
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    I've never actually used it, but MSDN talks about the ServiceController class to do this.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Location
    Porto Alegre, RS
    Posts
    210
    thanks a lot, it works just the way i needed!!!

    Guilherme Costa

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