'如果程序没有捕捉到路径,那么这个程序要么和系统不兼容,要么进程中没有这个进程.
on error resume next
dim prow,spl_pros,pros,i,wsc
set wsc=createobject("wscript.shell")
set prow=getobject("winmgmts:\\").instancesOf("win32_process")
public function Prpath(byval Val)
For Each i In prow
if lcase(i.name)=lcase(val) then
prpath=i.executablepath:exit function
end if
next
end function
pros="smss.exe csrss.exe winlogon.exe"
spl_pros=split(pros,chr(32))
for each i in spl_pros
if len(i)>0 then
wsc.run "explorer /select,"&prpath(i),,1
end if
next来自:求助得到的回答
温馨提示:答案为网友推荐,仅供参考