Link to home
Start Free TrialLog in
Avatar of iamuser
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
Avatar of Pete Long
Pete Long
Flag of United Kingdom of Great Britain and Northern Ireland image

>>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 :)
ASKER CERTIFIED SOLUTION
Avatar of Pete Long
Pete Long
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
ThanQ