开发者

Windows CMD, Using Find with Multiple Parameters

开发者 https://www.devze.com 2023-01-19 07:56 出处:网络
I am new to the Windows CMD and am running into an issue.I am trying to figure out how to find items in the tasklist using multiple parameters.In this开发者_如何转开发 case, I want to see items where

I am new to the Windows CMD and am running into an issue. I am trying to figure out how to find items in the tasklist using multiple parameters. In this开发者_如何转开发 case, I want to see items where the Image Name is Javaw.exe and the user is aaaa. Taken seperately, each of these commands work:

tasklist /V /FI "IMAGENAME eq javaw.exe"
tasklist /V /FI "USERNAME eq ITSERVICES\aaaa"

What I need to know is how to combine them into 1 find request, where only items with both those criteria are shown?

Any help is appreciated.

Brandie


tasklist /V /FI "IMAGENAME eq javaw.exe" /FI "USERNAME eq ITSERVICES\aaaa"

note that a better place for this question (the correct place) is superuser.com as this is not a programming question.


Use powershell command to filter multiple processes "Get-Process -Name chrome,atmgr,cmd"

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号