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
Post a Comment