![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
批处理如何减少任务管理器里某个程序的进程数? 15
2015-06-24 · 知道合伙人互联网行家
![](https://himg.bdimg.com/sys/portrait/item/public.1.3188caea.nBdYrIVULSrFRYJ40mZDQQ.jpg)
知道合伙人互联网行家
向TA提问 私信TA
![](https://wyw-base.cdn.bcebos.com/pc-content/follow.gif)
你的提问与所提供截图并无关联
如果直接解答你字面问题不考虑截图的话,例如结束360rp.exe这个进程,见3
taskkill /im 360rp.exe /f
右侧截图中并非进程,您自己也在左图中用红框圈出那是"相关性"了,从图上得知你的处理器为八线,故猜测您应该是想通过批处理减少某个进程占用的线程数量
此操作需要调用相关API,经查证确实无法使用bat实现
下面是一段有关操作的提示
run
kill XX with status_only
it will present the actual percentage of rollback completed, or run
select wait_type, wait_time, percent_complete from sys.dm_exec_requests where session_id =
to see if the process is working; if not, I am afraid you have to take the mssq instace offline to clean it; it's very nasty thing, if the rollback blocks for some reason (sometime unexplicable) you must restart.
Hope MS will work on this; if it is an external process like DTS, you can get the pid and kill via Task manager, but a sql inside blocked process in this fashion gives you no chance.
对的,我就是想要关闭8个线程中的一个或者几个,这个就没有办法用批处理实现了是么?
批处理没办法 但是可以用powershell.命令和process有关,你可以使用powershell ies输入process就会出相关提示,我对ps不是很熟,所以就不敢乱说了