writing Batch file question again

Posted on 2005-04-26
Last Modified: 2010-04-18
I am looking at a batch file that's written in this context

net stop "xxxx" /yes
net stop "xxx" /yes

can someone explain to me why the service that needed to be stopped had to have the " " around it? PLus what does the /yes imply.

Question by:iamuser
    LVL 57

    Expert Comment

    by:Pete Long
    >>can someone explain to me why the service that needed to be stopped had to have the " " around it?

    they only need quotes if there is a SPACE in them

    net stop spooler

    works cause spooler has no space in it :)
    LVL 57

    Accepted Solution

    to quantify

    net stop windows time

    will fail

    net stop "windows time"

    will work
    LVL 57

    Expert Comment

    by:Pete Long
    the /yes switch Carries out the command without first prompting you to provide information or confirm actions.
    LVL 57

    Expert Comment

    by:Pete Long

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
    This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now