这里以java为例

在cmd中输入   

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

便可复制命令行信息