[home]
[scripts]
[news]
[forums]
[feedback]
...a journey into a lost mind. Don't suppose you found it?
How to start/stop a service
(id:
1128
) (
4255
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
Most Popular Scripts
(9726 hits)
File Uploads
[3/18/2002][ASP/VBScript]
(7269 hits)
WAIT message
[4/5/2002][ASP/VBScript]
(6680 hits)
Calendar Script
[3/18/2002][ASP/VBScript]
(6430 hits)
Tree/Forum Script
[4/2/2002][ASP/VBScript]
(5979 hits)
NT Authentication
[11/12/2002][ASP/VBScript]
Newest Scripts
Get Application Root Path
[8/22/2007][ASP.NET/VB.Net]
Who Is Online.
[6/27/2007][ASP.NET/VB.Net]
Save a remote file
[6/23/2007][ASP.NET/C#]
ITracker - Sample Application
[9/13/2006][ASP.NET/VB.Net]
How to start/stop a service
[12/5/2005][ASP.NET/C#]
RSS Subscriptions
News
Newest Scripts
Top Scripts
Newest Posts
Advanced Script Search
Keyword(s)
Any
ASP/JScript
Visual Basic 6
ASP/VBScript
HTML
Javascript
ASP.NET/C#
ASP.NET/VB.Net
ASP.NET/General
Category
Searching...