基 础 函 数 参 考


ProcessExists

检查指定进程是否存在.

ProcessExists ( "进程" )

参 数

进程 进程的名称或 PID(进程标识符).

返 回 值

成功: 返回进程的 PID.
失败: 返回 0, 进程不存在.

备 注

进程名是没有完整路径的可执行文件, 如 "notepad.exe" 或 "winword.exe"

PID 是进程的唯一数字标识.

每隔 250 毫秒左右进程将被检测一次.

相 关 函 数

ProcessClose, ProcessWait, ProcessWaitClose, WinExists, ProcessList

函 数 示 例


If ProcessExists("notepad.exe") Then
    MsgBox(0, "范例", "笔记本程序正在运行.")
EndIf

provider with jb51.net (unicode)