activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

用户界面自动化活动

上次更新日期 2026年2月28日

执行命令

UiPath.MobileAutomation.Activities.ExecuteCommand

描述

执行未与特定端点相关联的原生移动命令。例如,您可以检索电池信息或关闭警示(请参阅Appium 命令)。

Use case

使用“执行命令”活动运行用于检索设备时间的移动命令。

In the following example, the mobile:getDeviceTime mobile command is used with the new Dictionary<string,object> {{"format","YYYY-MM-DDTHH:mm:ssZ"}} parameters to return the date and time from an Android Device Emulator.

确保在“执行命令”中将“输出”属性(例如, deviceTime )和相应的变量定义为数据管理器中的数据对象类型 。

docs image

项目兼容性

Windows - Legacy | Windows

配置

设计器面板
  • “命令” - 要执行的命令。
  • “参数” - 应与命令一起传递的参数。
属性面板
常见
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
  • “显示名称”- 活动的显示名称。

输入

  • “命令” - 要执行的命令。
  • “参数” - 应与命令一起传递的参数。
其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
输出
  • Output - The results of the command.
  • 描述
  • Use case
  • 项目兼容性
  • 配置

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2026 UiPath。保留所有权利。