stop and start services unattendedly

  • Thread starter Thread starter Donald MacKenzie
  • Start date 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?
 
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.
 
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
 
Back
Top