By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,986 Members | 1,193 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,986 IT Pros & Developers. It's quick & easy.

net stop service

P: n/a
Hi all,
Is there a way to stop a service eg. net stop "dns client" without to
invoke .bat or .cmd?
I didn't find nothing ( no class etc) with google about this.
THANKS IN ADVANCE.

Apr 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
yqyq22 wrote:
Hi all,
Is there a way to stop a service eg. net stop "dns client" without to
invoke .bat or .cmd?
I didn't find nothing ( no class etc) with google about this.
THANKS IN ADVANCE.


Look at the System.ServiceProcess.ServiceController class.
--
Tom Porterfield
Apr 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.