批处理启动和停止服务

阅读更多

多个服务顺序启动:

-------------------------------------

@echo off 

net start OracleOraDb10g_home1TNSListener 

net start OracleServiceORCL 

net start OracleDBConsoleorcl 

 

net start esri_sde

net start "ArcGIS Server Manager Service"

net start ArcServerObjectManager

 

echo ---------------服务已经启动-----------------

pause

exit 

@rem CHOICE /C YN /M "退出请按 Y,返回菜单请按 N。" 

 

 

多个服务顺序停止:

-------------------------------------

@echo off 

net stop OracleOraDb10g_home1TNSListener 

net stop OracleServiceORCL 

net stop OracleDBConsoleorcl 

 

net stop esri_sde

net stop "ArcGIS Server Manager Service"

net stop ArcServerObjectManager

 

echo ---------------服务已经停止-----------------

pause

exit 

@rem CHOICE /C YN /M "退出请按 Y,返回菜单请按 N。" 


你可能感兴趣的:(.net,C,C++,C#)