windows下根据pid查看java进程所在目录



wmic process get name,executablepath,processid|findstr pid

wmic process list |findstr “pid”//所有的参数