windows cmd - tasklist /fi “windowtitle eq …” doesnt work [closed]

限于喜欢 提交于 2019-12-24 23:04:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!