VBS 如何获取指定进程的路径?

2024-12-26 10:38:13
推荐回答(1个)
回答1:

strComputer="."
set wmiConnect=Getobject("winmgmts:\\"&strComputer&"\root\cimv2")
set Items=wmiConnect.execquery("select * from win32_process where name='explorer.exe'")
for each colitem in Items
wscript.echo colitem.executablepath
next