wmic process where caption="java.exe" get processid,caption,commandline /value

tasklist /fi  "imagename eq java.exe"

tasklist | findstr "java"

 

# 查看2001端口 导出到c盘
netstat -aont | findstr "2001" > c:\2001.log