윈도우에서 CommandLine 정보 얻어오기.(ps -ef | grep for window)

=========== Command ======================
wmic process where “name=’java.exe'” get ProcessID, Commandline /format:list

=========== OUTPUT ======================
CommandLine=”C:\Program Files\Java\jdk1.7.0_75\bin\javaw.exe” “-Dcatalina.base=D:\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0” “-Dcatalina.home=D:\DevelopmentEnv\apache-tomcat-7.0.47” “-Dwtp.deploy=D:\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps” “-Djava.endorsed.dirs=D:\DevelopmentEnv\apache-tomcat-7.0.47\endorsed” -Dfile.encoding=MS949 -classpath “D:\DevelopmentEnv\apache-tomcat-7.0.47\bin\bootstrap.jar;D:\DevelopmentEnv\apache-tomcat-7.0.47\bin\tomcat-juli.jar;C:\Program Files\Java\jdk1.7.0_75\lib\tools.jar” org.apache.catalina.startup.Bootstrap start
ProcessId=5988

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다