Yes, fortunately "msedge.exe" is likely to be unique enough to be safe, but some care should be taken with a tool like "find' that is not bounded.
Been experimenting a little with:
Code:
tasklist | findstr /i /r /c:"^chrome[.]exe .*$" | find /I /C "chrome"
It's a bit more verbose, but it seems to produce the correct result as well:
ProcessInstances.jpg
That being said, adding the extension like you suggested in your second reply should be a solid choice on its own - I'm already a fan of it, always prefered performance when possible. Only a few extensions are themselves "extensions" of shorter ones, e.g. "html" to "htm", "rar01" to "rar", etc. - and it's not the case for executables anyway (without turning them into non executables, that is).
Statistics: Posted by Yincognito — Yesterday, 7:51 pm — Replies 8 — Views 3194