How to run services.msc from command prompt

C

captain_2010

hi,

I am making a batch file for running certain services
like services.msc stop <this service> or services.msc start <this
service>

Trying to run services.msc command from dos command prompt and
it opens services in window.


captain
 
T

Thomas Wendell

hi,

I am making a batch file for running certain services
like services.msc stop <this service> or services.msc start <this
service>

Trying to run services.msc command from dos command prompt and
it opens services in window.


captain

The commands are

net start <this service>

and

net stop <this service>



--
Tumppi
=================================
A lot learned from these newsgroups
Helsinki, FINLAND
(translations from/to FI not always accurate
=================================
 
M

mhc

hi,

I am making a batch file for running certain services
like services.msc stop <this service> or services.msc start <this
service>

Trying to run services.msc command from dos command prompt and
it opens services in window.


captain

There is a command-line version of SERVICES.MSC called SC.EXE. The
commands SC START <service> and SC STOP <service> will do what you want.
The SC command supports a large number of options, many of which are not
available in any other program (such as deleting a service from the
registry, or starting/stopping drivers). You can get a list of the
command syntax for SC.EXE by typing SC /? at the command prompt.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top