stop and start services unattendedly

  • Thread starter Donald MacKenzie
  • Start date
D

Donald MacKenzie

Hello, I have a program the requires these 3 things to happen, I cannot to
it manually everyday because I am not always in the office. it has to be
unattended.

here is the batch file right now.

net stop server
net start server
net start "computer browser"

how can I automate this so I don't have to enter Y for each?
 
N

Nil

Hello, I have a program the requires these 3 things to happen, I
cannot to it manually everyday because I am not always in the
office. it has to be unattended.

here is the batch file right now.

net stop server
net start server
net start "computer browser"

how can I automate this so I don't have to enter Y for each?

I just tried your batch file, and I wasn't required to enter Y at any
time. Under what conditions does it ask you that? What is the exact
screen output?

Maybe the SC command would work better for you.
 
D

Donald MacKenzie

your right I tried on another computer and it works just great. I am running
xp pro sp3 fully updated.
anyways I found /y worked on my machine and before it wasn't that's just
weird
 

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