Select to view content in your preferred language

How to access geoprocessing tools of arcgis desktop using VBScript?

789
0
04-18-2010 05:40 AM
IndiraPriyadarsini
New Contributor
I am new to arcgsi and VBScript.I have exported the VBScript code from model-builder.The code is as follows

' Create the Geoprocessor object
set gp = WScript.CreateObject("esriGeoprocessing.GPDispatch.1")

' Load required toolboxes...
gp.AddToolbox "C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx"


' Local variables...
Output_Table = "C:\Documents and Settings\lakshmi\Desktop\PH\ph1_Select_CopyRows.dbf"
ph1_Select = "ph1_Select"

' Process: Copy Rows...
gp.CopyRows_management ph1_Select, Output_Table, ""

But while i was running that code im getting the error
           addtable.vbs(19,1)(null):unspecified error.
So please help me in order to make it run
0 Kudos
0 Replies