问题
I have a little problem here and wondered if someone could explain this to me :)
when I type tasklist /V
I get all my tasks and also the task I'm looking for:
So my process does have a WINDOWTITLE and its running and seen by tasklist... but when I type
tasklist /FI "WINDOWTITLE eq construction_tool_server"
or
tasklist /V /FI "WINDOWTITLE eq construction_tool_server"
I get an empty list -.-
What am I doing wrong? :)
回答1:
Thanks to BoogieMan2718 for your help :)
the problem was that i had spaces in my WINDOWTITLE
i changed the line
"title construction_tool_server && nodemon --watch server --exec babel-node -- ./server/server.js"
to
"title construction_tool_server&& nodemon --watch server --exec babel-node -- ./server/server.js"
and it works now :)
so thank you again :)
回答2:
The WINDOWTITLE Filter does not work on remote machines. Is this process on the local machine or a remote machine?
Also, does this command work for any other single local process besides construction_tool_server, or does it fail for any process you try?
You might try running CMD as administrator if you are not already.
来源:https://stackoverflow.com/questions/45012345/windows-cmd-tasklist-fi-windowtitle-eq-doesnt-work