今天google发现一篇文章写的不错,在windows下要获取具体的路径可以使用powershell
例如我们要查看chrome的执行路径,可以在cmd中这样写:
powershell "get-process chrome | select-object path"
这们就会把chrome的完整路径列出来。在linux下很容易就不说了。
ps:出处:http://frankgilroy.com/2012/03/06/getting-the-canonical-and-absolute-path-to-a-process/