[home]  [scripts]  [news]  [forums]  [feedback] 
Home
...a journey into a lost mind. Don't suppose you found it?
How to start/stop a service  (id:1128 ) (6096 hits)
Description:
Simple code sample to show you how to stop/start a service through ASP 
Code:
// Add a reference to system.serviceprocess

System.ServiceProcess.ServiceController c = new System.ServiceProcess.ServiceController("World Wide Web Publishing Service");
c.Stop();

//Make sure your asp.net user account has the desired permissions though. 
Created:
12/5/2005 2:00:00 AM 
Created By:
Curt 
Download URL:
 
Category:
ASP.NET/C# 
Sample URL:
 
Updated:
7/6/2007 9:22:00 AM 
RSS Subscriptions
Advanced Script Search

Keyword(s)


Category