@echo off for %%i in ( mysql OracleDBConsoleleak OracleMTSRecoveryService OracleOraDb11g_home1TNSListener OracleServiceLEAK MSSQLSERVER MSSQLServerOLAPService MsDtsServer100 ReportServer SQLWriter) do ( echo the service '%%i' is being stopping... net stop %%i echo service '%%i' stopped. ) pause