> ## 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/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/launchapplicationcommand-01.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=24993eb5f65b2e947e77d391562f0e91" alt="启动应用程序指令参数面板" width="648" height="453" data-path="helpcenter/commands/os/images/launchapplicationcommand-01.png" />

    | 参数         | 说明                                                 |
    | ---------- | -------------------------------------------------- |
    | **应用程序路径** | 应用程序可执行文件(.exe)的完整路径或待打开文件的完整路径                    |
    | **窗口样式**   | 指定应用程序启动后窗口的显示方式，普通，最小化，最大化                        |
    | **指令执行后**  | 执行启动指令后，继续向下执行或等待程序加载完成，继续执行下一条指令，等待主窗口出现，等待应用执行完成 |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/launchapplicationcommand-02.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=31a0b1dc14a38c87f2d975ada7dd5fc9" alt="启动应用程序使用示例 - 流程搭建" width="859" height="126" data-path="helpcenter/commands/os/images/launchapplicationcommand-02.png" />

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

使用【启动应用程序】指令启动路径下"C:....”的应用程序，并将进程ID保存到【应用程序PID】

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/launchapplicationcommand-03.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=e578d9002d2239be8404c35fa80a10f4" alt="启动应用程序使用示例 - 效果展示" width="836" height="135" data-path="helpcenter/commands/os/images/launchapplicationcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/launchapplicationcommand-04.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=6235bdcc5161fd69d87add61605434d0" alt="启动应用程序使用示例 - 效果展示" width="1323" height="808" data-path="helpcenter/commands/os/images/launchapplicationcommand-04.png" />

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