怎么用autoit查找电脑中是否有某个程序并获取路径

2025-12-17 05:36:25
推荐回答(1个)
回答1:

你是说正在运行的进程?

#Include
$Pid = ProcessExists("进程名称") ;例如explorer.exe
If $Pid = 0 Then
MsgBox(0, "", "进程名称 is not running!")
Else
MsgBox(0, "", "进程名称 is running. Path: " & _WinAPI_GetModuleFileNameEx($Pid))
EndIf