A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Customizing Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

stop and start services unattendedly



 
 
Thread Tools Display Modes
  #1  
Old December 7th 09, 11:19 PM posted to microsoft.public.windowsxp.customize
Donald MacKenzie
external usenet poster
 
Posts: 10
Default stop and start services unattendedly

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?


Ads
  #2  
Old December 7th 09, 11:53 PM posted to microsoft.public.windowsxp.customize
Nil[_2_]
external usenet poster
 
Posts: 2,170
Default stop and start services unattendedly

On 07 Dec 2009, "Donald MacKenzie" wrote in
microsoft.public.windowsxp.customize:

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.
  #3  
Old December 7th 09, 11:53 PM posted to microsoft.public.windowsxp.customize
Nil[_2_]
external usenet poster
 
Posts: 2,170
Default stop and start services unattendedly

On 07 Dec 2009, "Donald MacKenzie" wrote in
microsoft.public.windowsxp.customize:

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.
  #4  
Old December 8th 09, 02:01 AM posted to microsoft.public.windowsxp.customize
Donald MacKenzie
external usenet poster
 
Posts: 10
Default stop and start services unattendedly

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
"Nil" wrote in message
...
On 07 Dec 2009, "Donald MacKenzie" wrote in
microsoft.public.windowsxp.customize:

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.



  #5  
Old December 8th 09, 02:01 AM posted to microsoft.public.windowsxp.customize
Donald MacKenzie
external usenet poster
 
Posts: 10
Default stop and start services unattendedly


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
"Nil" wrote in message
...
On 07 Dec 2009, "Donald MacKenzie" wrote in
microsoft.public.windowsxp.customize:

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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 06:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.