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

# 运行 (wdRun.exe)

> 运行 (wdRun.exe)

使用此工具在相应的操作系统中运行指定的命令(以及任何提供的参数)。

`wdRun [/A] [/D:path] [/WTP[:sec]] [/WTO[:sec]] command `

| 选项           | 说明                                                                                                                          |
| ------------ | --------------------------------------------------------------------------------------------------------------------------- |
| `/A`         | 启动命令后立即返回,不等待完成                                                                                                             |
| `/D:path`    | 指定命令的工作目录                                                                                                                   |
| `/WTP[:sec]` | 从系统 OS 运行时可以指定 /WTP\[:sec] 以阻塞,直到标题进程准备好交互。默认超时时间为 180 秒,可以通过提供可选的超时值(以秒为单位)进行配置(例如 /WTP:200)。使用值 -1 或 “infinite” 可无限期等待。   |
| `/WTO[:sec]` | 从系统 OS 运行时可以指定 /WTO\[:sec] 以阻塞,直到标题 OS 准备好交互。默认超时时间为 180 秒,可以通过提供可选的超时值(以秒为单位)进行配置(例如 /WTO:200)。使用值 -1 或 “infinite” 可无限期等待。 |
| `/V`         | 显示详细输出。此选项将附加有关返回值来源的信息(退出代码是来自远程运行的进程还是来自 wdRun)。                                                                          |
| `command`    | 要运行的命令                                                                                                                      |

## 另请参阅

[基于主机的命令行工具](/tools/tools-console/console_commandlinetools/consolecommandlinetools)

[XTF 传输错误](/tools/tools-console/commandlinetools/xtf-transport-errors)


## Related topics

- [基于主机的命令行工具](/zh-CN/tools/tools-console/console_commandlinetools/consolecommandlinetools.md)
- [面向 XBOX 的主机端命令行工具](/zh-CN/tools/tools-console/console_commandlinetools/index.md)
- [XBOX PC Remote (wdRemote.exe)](/zh-CN/tools/tools-pc/commandlinetools/gr-wdRemote.md)
- [恢复 (wdRecovery.exe)](/zh-CN/tools/tools-console/console_commandlinetools/wdrecovery.md)
- [XBOX PC Remote 侦听终结点 (wdEndpoint.exe)](/zh-CN/tools/tools-pc/commandlinetools/gr-wdEndpoint.md)
