@echo off
net stop OracleOraDb11g_home1TNSListener
pause
纠正一个小观念,它停止的是服务,而不是进程(虽然进程最后也会被停掉)。复制代码
- @echo off
- for /f "tokens=2" %%i in ('sc query ^| findstr /i "SERVICE_NAME:.*Oracle"') do (
- sc stop %%i
- )
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |