stop and start services unattendedly

Discussion in 'Scripting' started by Donald MacKenzie, Dec 7, 2009.

  1. 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

    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?
    Donald MacKenzie, Dec 7, 2009
    1. Advertisements

  2. 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!
    Pegasus [MVP], Dec 7, 2009
    1. Advertisements

  3. ok.
    also for some reason /y just started to work with the batchfile.
    Donald MacKenzie, Dec 8, 2009
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.