错误
在 ArcGIS Enterprise 计算机上,尝试为部署运行命令实用程序失败,并在“命令提示符”窗口中返回以下错误消息:
Error: <command utility> is not recognized as an internal or external command, operable program or batch file.
下图显示了尝试在“命令提示符”窗口中运行“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”实用程序。
有关 ArcGIS Enterprise 中可用命令实用程序的详细信息,请参阅 Portal for ArcGIS:ArcGIS Data Store 命令实用程序参考。
文章 ID: 000029521
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序