CMD常用命令16获取命令行参数

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

"D:\NeoLang\Java\JDK\jdk_x64_1.8.0_77\bin\java.exe"
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources
-classpath "D:\NeoLang\Java\JavaContainer\apache-tomcat-8.5.16-windows-x64\bin\bootstrap.jar;D:\NeoLang\Java\JavaContainer\apache-tomcat-8.5.16-windows-x64\bin\tomcat-juli.jar"
-Dcatalina.base="D:\NeoLang\Java\JavaContainer\apache-tomcat-8.5.16-windows-x64"
-Dcatalina.home="D:\NeoLang\Java\JavaContainer\apache-tomcat-8.5.16-windows-x64"
-Djava.io.tmpdir="D:\NeoLang\Java\JavaContainer\apache-tomcat-8.5.16-windows-x64\temp"
org.apache.catalina.startup.Bootstrap  start

"C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe"
-Djetty.home=D:/GitHub/Jetty/binary/jetty-distribution-9.4.18.v20190429
-Djetty.base=D:/GitHub/Jetty/binary/jetty-distribution-9.4.18.v20190429
-Djava.io.tmpdir=C:/Users/Hansen/AppData/Local/Temp
-jar D:/GitHub/Jetty/binary/jetty-distribution-9.4.18.v20190429/start.jar jetty.state=D:/GitHub/Jetty/binary/jetty-distribution-9.4.18.v20190429/jetty.state jetty-started.xml

Leave a Reply

Your email address will not be published. Required fields are marked *

*