How to restart all the services in a single step

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone help me???
i want to know , that how to restart all the windows 2000 server services in a single step
thanks
 
Are you sure you want to do this? I suppose that this would work:

net start>services.txt
for /f "skip=3 tokens=*" %q in (services.txt) do (net stop "%q")
for /f "skip=3 tokens=*" %q in (services.txt) do (net start "%q")

If you put that in a .bat file, change %q to %%q.

Ray at work
 
ALL the services? Do you want to enter the server in a turtle race or
what? This is going to cause you all kinds of problems.

John
 

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

Back
Top