Control Panel
Forum
Hosting Help
6 Months free Hosting (New!)
Resources
Login
Members
Shared Hosting
|
New Features
|
Advertise
|
Tutorials
|
Product Reviews in India
|
Free aptitude test questions
|
TATA Nano Car reviews
Total
members
:
82077
Average new registrations per day (in last 7 days):
44
New Registration:
Open
Register Now
Home
»
Resources
»
Conrol Services Through Command Line
ASP.NET
ADO.NET
Web Services
Remoting
Visual Studio 2005
Error Bank
Interview Questions
Tips & Tricks
XML
HTML
Jscript/Javascript
IIS
Windows
General
Submit Resource or code snippet
... and get
surprise gifts
Win Digital camera, ASP.NET Books, Free softwares!!
Conrol Services Through Command Line
31 May, 2008
Author:
Elad Karako
Israeli Netanya Academic College (CS b.Sc)
Summary
A Simple Way to Manipulate Windows Core & Startup Services through Command-Line, Useful for long batch (.bat or .cmd) files
.NET Classes used :
first thing first- know your services real name.
the text you normally see in the
services.msc
is not the real deal.
write this in cmd:
sc query >c:\1.txt
this will flush the information (from registry of course) to a text file.
now open 1.txt with any notepad
the name of each service is writen here: SERVICE_NAME: serviceName
now you know ! command lines are:
check service state:
sc query serviceName
Stop service:
sc stop serviceName
Start service:
sc start serviceName
setting how service will started:
sc config serviceName start=auto
sc config serviceName start=demand
sc config serviceName start=disabled
that's it !
Feedbacks about this page from members:
- No Feedbacks yet !! -
Submit Feedback
View All Feedbacks
Partners
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies.
All Rights Reserved.