学习:https://www.lubby.org/en/DB/details/LKBEN10664
How to stop a service with dependencies from a command line without question in windows
The “net stop” command has a parameter which is not commented. This parameter is /yes and will automatically stop all the dependent services too.
----------------------------------------cmd1-------------------------------------
@echo off
:: STOP SERVICES
net stop “NetBackup Legacy Network Service”
pause
----------------------------------------cmd2-------------------------------------
net stop “NetBackup Legacy Network Service” /yes