2014-09-19 101 views

回答

4
@echo off 

for /f "tokens=1 delims=" %%# in ('qprocess^|find /i /c /n "chrome"') do (
    set number=%%# 
) 

echo number of chromes: %number% 
pause 
+0

感谢您的回答,但它不起作用。 Cmd开始和关闭...你知道为什么吗? – Thyoity 2014-09-19 21:01:36

+0

@Thyoity - 在结尾处设置“PAUSE”或通过命令提示符调用它。 – npocmaka 2014-09-19 21:02:19

+0

现在工作!谢谢! – Thyoity 2014-09-20 06:57:59

3
tasklist|find /i /c "chrome.exe" 
0

我越来越喜欢

否过程存在我的ID 号铬合金的输出:0 按任意键继续

但是如果我检查任务管理器,有很多chrome.exe进程在运行。

相关问题