Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > stop and start services unattendedly

Reply
Thread Tools Display Modes

stop and start services unattendedly

 
 
Donald MacKenzie
Guest
Posts: n/a

 
      12-07-2009
Hello, I have a program that 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?


 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a

 
      12-07-2009

"Donald MacKenzie" <> wrote in message
news:O0%...
> Hello, I have a program that 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?


See the replies you received in the vb scripting newsgroup, then have a look
at the link below to see why multiposting causes duplication of effort.
Crossposting is the way to go if you wish to keep up your popularity rating!
http://www.blakjak.demon.co.uk/mul_crss.htm


 
Reply With Quote
 
Donald MacKenzie
Guest
Posts: n/a

 
      12-08-2009
ok.
also for some reason /y just started to work with the batchfile.
"Pegasus [MVP]" <> wrote in message
news:...
>
> "Donald MacKenzie" <> wrote in message
> news:O0%...
>> Hello, I have a program that 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?

>
> See the replies you received in the vb scripting newsgroup, then have a
> look at the link below to see why multiposting causes duplication of
> effort. Crossposting is the way to go if you wish to keep up your
> popularity rating!
> http://www.blakjak.demon.co.uk/mul_crss.htm
>



 
Reply With Quote
 
 
 
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Start/stop Services for Power users Nick Windows Small Business Server 4 11-22-2009 01:32 PM
Failed to initialize WU client: 0x8007277a Venkata Sadineni Windows Update 4 11-10-2009 06:28 PM
Run Vista legally for at least one year/ Vista Activation doesn't stop Piracy Chad Harris Windows Vista Installation 56 12-25-2008 01:34 PM
System freeze because of msconfig danu3422 Windows Vista Installation 6 04-22-2007 11:30 AM
Indexing - oddities persist/increase (Dave Wood...?) Julian Windows Vista File Management 6 04-21-2007 12:58 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59