Re: start/stop services programatically
From: Steve C. Orr [MVP, MCSD] (Steve_at_Orr.net)
Date: 06/15/04
- Next message: EMW: "Re: ASPX login page and xml"
- Previous message: S. Justin Gengo: "Re: Checkboxlist inside Repeater - doesn't fire click event for Checkboxlist"
- In reply to: vickaiser1_at_yahoo.com: "start/stop services programatically"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Jun 2004 14:08:29 -0700
Simply drag a Windows Service from your server explorer window onto a
webform. This will create a nice simple control on your form and you can
call the start and stop methods on it. You can use the same component
programatically from other classes too. Tip: You may need to use
impersonation to have the necessary permissions to start & stop windows
services.
-- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net <vickaiser1@yahoo.com> wrote in message news:89juc05qfq24r8f3lf1so9tq6udlcc2af8@4ax.com... > I am creating a setup project for an application and need to edit the > Metabase.xml file during setup. Does anyone know of a way to stop and > then restart services programatically before and after I edit this > file? > > Vic
- Next message: EMW: "Re: ASPX login page and xml"
- Previous message: S. Justin Gengo: "Re: Checkboxlist inside Repeater - doesn't fire click event for Checkboxlist"
- In reply to: vickaiser1_at_yahoo.com: "start/stop services programatically"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|