I'm trying to access data on a network drive for use in an ArcbObjects geoprocessing object, and it does not work. I've tried using UNC paths and a mapped drive. I can use a UNC path or a mapped drive in the ArcMap tool without a problem. I have tried forward slashes and double backslashes as well. If I use non UNC paths, this works.
Dim inputSurface As String ="\\myServer\c$\Users\ArcGISSOC\AppData\Local\Temp\raster12"
Dim params As IVariantArray
params = New VarArray
params.Add(inputSurface) 'input surface
params.Add(outputContours) 'output polyline
params.Add("0.5") 'contour interval
params.Add("0") 'base contour
params.Add("3.28") 'z factor
GP.Execute("Contour_sa", params, Nothing)
Works with:
Dim inputSurface As String ="C:\Users\ArcGISSOC\AppData\Local\Temp\raster12"
Is there another intermediate object I have to crate to access the this data?