> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 检查进程是否存在

## 指令说明

**描述：** 可以根据进程ID或进程名称判断当前系统中是否正在运行对应的进程

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/vz87YmU8RN3LdaSE/helpcenter/commands/os/images/checkprocessexistcommand-04.png?fit=max&auto=format&n=vz87YmU8RN3LdaSE&q=85&s=253b5154601e1bc399d46a2c95299214" alt="检查进程是否存在指令参数面板" width="973" height="598" data-path="helpcenter/commands/os/images/checkprocessexistcommand-04.png" />

    | 参数            | 说明                        |
    | ------------- | ------------------------- |
    | **进程属性**      | 指定待判断进程的方式，支持进程PID和进程名称两种 |
    | **进程名称/进程ID** | 输入待判断进程的PID或进程名称          |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/vz87YmU8RN3LdaSE/helpcenter/commands/os/images/checkprocessexistcommand-01.png?fit=max&auto=format&n=vz87YmU8RN3LdaSE&q=85&s=e7b74c83e96abbf2ce6fed2f6e68cc77" alt="检查进程是否存在使用示例" width="1233" height="303" data-path="helpcenter/commands/os/images/checkprocessexistcommand-01.png" />

**该流程执行逻辑：**

注：进程名称需在“任务管理器”中查看，打开任务管理器后切换至“详细信息”，取.exe前面的名称，区分大小写

使用【检查进程是否存在】检查PID为16468的进程是否在系统存在，判断结果为True

使用【终止进程】立刻停止PID为16468的进程

使用【检查进程是否存在】检查PID为16468的进程是否在系统存在，判断结果为False

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/vz87YmU8RN3LdaSE/helpcenter/commands/os/images/checkprocessexistcommand-02.png?fit=max&auto=format&n=vz87YmU8RN3LdaSE&q=85&s=7ac8774ec8d6d6088570aec3dd12c744" alt="检查进程是否存在效果展示" width="1074" height="270" data-path="helpcenter/commands/os/images/checkprocessexistcommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/vz87YmU8RN3LdaSE/helpcenter/commands/os/images/checkprocessexistcommand-03.png?fit=max&auto=format&n=vz87YmU8RN3LdaSE&q=85&s=31501f1552d9e4654c115fe6076455f4" alt="检查进程是否存在效果展示" width="1237" height="321" data-path="helpcenter/commands/os/images/checkprocessexistcommand-03.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
