Code Smart
If it's hard to test, it's not there yet.
Thursday, October 06, 2011
Equivalent of ps -ef | grep java in Windows
If you want to list a process and its command line, process id in Windows, this is the command:
wmic process where "name='java.exe'" get ProcessID, Commandline /format:list
That is the equivalent of "ps -ef | grep java" in Linux. Then you could use taskkill /f /pid
<PID> to kill it.
Equivalent of ps -ef | grep java in Windows
If you want to list a process and its command line, process id in Windows, this is the command:
wmic process where "name='java.exe'" get ProcessID, Commandline /format:list
That is the equivalent of "ps -ef | grep java" in Linux. Then you could use taskkill /f /pid
<PID> to kill it.
Please enable JavaScript to view the
comments powered by Disqus.
blog comments powered by
Disqus
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)