Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NET STOP command

Status
Not open for further replies.

camidon

Programmer
May 9, 2000
268
US
If I were going to set up a batch file using NET STOP to stop some NT services, is there a switch that will force it to stop the service and not ask if I'm sure?
 
I don't think net stop has such an option. what service are you running that asks for comfirmation to stop (never seen that)?

if you schedule the batch file ("at" command) then you can tell the scheduler to respond yes to any prompts (see online docs; Start -> Help)
 
At a command prompt type net help stop. You'll see the arguments for the net stop command.
 
I use a batch file that stops IIS services. It uses the /y command to stop the dependancy services. It should work for other services.

net stop [service] /y

regards

Cranberry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top