import arcpy, os
arcpy.env.workspace = os.getcwd()
# shapefile that contains hyperlink
shp = "myfile.shp"
# Create SearchCursor for feature class.
rows = arcpy.SearchCursor(shp)
for row in rows:
# Get the path to the file from field 'hyperlink'
path = row.getValue("hyperlink")
# Does that file exist?
if os.path.exists(path):
print "Link is OK: "+path
else:
print "BROKEN LINK!: "+path
del rows
import arcpy, os
arcpy.env.workspace = os.getcwd()
# Feature Class that contains PHOTOS field
shp = "Z:\ESRI\Geodatabase\TEST.gdb\point_FC"
# Create SearchCursor for feature class.
rows = arcpy.SearchCursor(shp)
for row in rows:
# the print path syntax works fine, it's the count that fails....
path = row.getValue("PHOTOS")
print path
if path != "N/A":
arcpy.GetCount_management(row)
del rows
Mike,
I'm confused, what are you trying to get a count of?