There is an error running geoprocessing VB script using cscript with ArcGIS Version 10 installed.
上次发布: August 25, 2014ArcGIS for Desktop
漏洞 ID 编号
NIM076059
已提交
December 8, 2011
上次修改时间
June 5, 2024
适用范围
ArcGIS for Desktop
找到的版本
10.0
操作系统
Windows OS
操作系统版本
XP
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.
解决办法
1. Use wscript, and replace the wscript.echo statements with statements that alternatively output to a text file.For instance, use:Dim filesys, cmdWindowOutput Set filesys = CreateObject("Scripting.FileSystemObject") Set cmdWindowOutput= filesys.CreateTextFile("cmdoutput.txt", True) ...replace : WScript.Echo "Successful execution"...with : cmdWindowOutput.WriteLine "Successful execution"...and then close the file : cmdWindowOutput.Close2. Use from the command line:wscript //B scottsScript.vbs where the //B parameter suppresses command prompts - therefore wscript WILL run through successfully, although there is no command line output; This is not a great workaround - as some form of output is required.