iamuser
asked on
writing Batch file question again
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.
Thanks
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.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
the /yes switch Carries out the command without first prompting you to provide information or confirm actions.
http://home.earthlink.net/~rlively/MANUALS/COMMANDS/N/NETSTOP.HTM
http://home.earthlink.net/~rlively/MANUALS/COMMANDS/N/NETSTOP.HTM
ThanQ
they only need quotes if there is a SPACE in them
net stop spooler
works cause spooler has no space in it :)