I just thought this was cool, start and stop remote services like so:
System.ServiceProcess.ServiceController sc2 =
new System.ServiceProcess.ServiceController("ServiceName", "MACHINE_NAME");
if (sc2.Status.Equals(System.ServiceProcess.ServiceControllerStatus.Running))
{
sc2.Stop();
}
Today' music tip: Run, don't walk to CDNOW to get the new Outkast album... Speakerboxxx/The Love Below. The track “Hey Ya” is soooooo good. And only $17 for two separate albums!
Posted
10-09-2003 1:51 AM
by
Brendan Tompkins