错误

错误:<command utility>未被识别为内部或外部命令、可操作程序或批处理文件

Last Published: March 9, 2023

错误消息

在 ArcGIS Enterprise 计算机上,尝试为部署运行命令实用程序失败,并在“命令提示符”窗口中返回以下错误消息:

Error:   
<command utility> is not recognized as an internal or external command, operable program or batch file.

下图显示了尝试在“命令提示符”窗口中运行“webgisdr”实用程序时的错误消息。

尝试运行 webgisdr 实用程序时返回错误消息

原因

在“命令提示符”窗口中,未正确指定或设置命令实用程序目录。 命令实用程序的默认位置为:

C:\Program Files\ArcGIS\Portal\tools\<command utility>

解决方案或解决方法

在“命令提示符”窗口中运行该实用程序之前,将位置更改为命令实用程序目录,如下面的代码块和图像所示。

Note:
Depending on the command utility directory, use quotation marks when specifying the utility location in the Command Prompt window. Refer to Microsoft: Long filenames or paths with spaces require quotation marks for more information.
C:\Windows\system32>cd "C:\Program Files\ArcGIS\Portal\tools\<command utility>"

下图显示了在“命令提示符”窗口中将目录更改为实用程序位置后,在 ArcGIS Enterprise 计算机上运行的“webgisdr”实用程序。

webgisdr 实用程序在“命令提示符”窗口中更改位置路径后运行

有关 ArcGIS Enterprise 中可用命令实用程序的详细信息,请参阅 Portal for ArcGIS:ArcGIS Data Store 命令实用程序参考

文章 ID: 000029521

接收通知并查找新问题或常见问题的解决方案

从我们全新的 AI 聊天机器人中获得简明答案和视频解决方案。

下载 Esri 支持应用程序

相关信息

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项