> ## 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.

# 终止进程

## 指令说明

**描述：** 立刻停止正在运行的进程

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/killprocesscommand-04.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=d45896e622d2fcbb411646b22d8fcfe2" alt="终止进程指令参数面板" width="976" height="462" data-path="helpcenter/commands/os/images/killprocesscommand-04.png" />

    | 参数            | 说明                              |
    | ------------- | ------------------------------- |
    | **进程属性**      | 选择要通过哪种方式指定要终止的进程，支持进程ID和进程名称两种 |
    | **进程名称/进程ID** | 输入要终止的进程ID或进程名称                 |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/killprocesscommand-03.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=17c9ff9dc093f6491f555b00ea945fd5" alt="终止进程使用示例" width="1233" height="303" data-path="helpcenter/commands/os/images/killprocesscommand-03.png" />

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

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

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

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

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/killprocesscommand-02.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=7103888ebf0fedea1ec64b2d7b4f8763" alt="终止进程效果展示" width="1074" height="270" data-path="helpcenter/commands/os/images/killprocesscommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/killprocesscommand-01.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=61e2c40ba20f0e49b706bdddca1a6449" alt="终止进程效果展示" width="1237" height="321" data-path="helpcenter/commands/os/images/killprocesscommand-01.png" />

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