windows - Print all PID from a tasklist command result -


i trying display pid several processes printed result tasklist command. can me please ?

i have issue.when run tasklist /fi "imagename eq javaw.exe" /fi "windowtitle ne jenkins*" result ok. when run taskkill /f /im javaw.exe "windowtitle ne jenkins*" no task found,but exist. checked taskkill /f /fi "imagename eq javaw.exe" "windowtitle ne jenkins*"

any ideea why strage behaviour ?

i figured out myself.

the code bellow print processes pid application (in case : javaw.exe)

for /f "tokens=1,2 delims = " %%a in ('tasklist /fi "imagename eq javaw.exe" ^| find ^"javaw^"') echo %%b

my seconds question still has no answer yet.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -