Gerenciando processos e serviços utilizando script .bat ou .cmd

Logo abaixo irei mostar exemplo de como se iniciar e como parar serviços e processos no windows:

 

START SQL + NetBackup.bat

net start MSSQLSERVER
net start SQLSERVERAGENT
net start MSSQLServerOLAPService
net start MsDtsServer100
net start ReportServer
net start SQLWriter

net start "NetBackup Client Service"
net start "NetBackup Legancy Client Service"
net start "NetBackup Legancy Network Service"
cd "C:\Program Files\Veritas\NetBackup\bin\"
start tracker.exe

 

STOP SQL + NetBackup.bat

net stop MSSQLSERVER /y
net stop SQLSERVERAGENT /y
net stop MSSQLServerOLAPService /y
net stop MsDtsServer100 /y
net stop ReportServer /y
net stop SQLWriter /y

net stop "NetBackup Client Service" /y
net stop "NetBackup Legancy Client Service" /y
net stop "NetBackup Legancy Network Service" /y

taskkill /im tracker.exe

.