Ok. I'm really stumped.Let's try another few small changes to the script:import arcpy
import os
fc = r"C:\Users\GIS\Documents\TEST 2-25\project_test.shp"
fields = ["PROJECT_D2"]
toTxtFile=""
with arcpy.da.SearchCursor (fc,fields) as cursor:
for row in cursor:
Roll = str(row[0])
if not os.path.exists(Roll):
toTxtFile+=Roll + os.linesep
#write to file
f = open(r"C:\Users\GIS\Documents\brokenlinks.txt","w") #note that "w" will overwrite the file if it already exists
f.write(toTxtFile)
f.close()
Secondly, let's also try picking out a few hyperlinks from brokenlinks.txt that you are 100% sure actually exist (copy and paste into windows explorer). Then let's opening python (Start > All Programs > ArcGIS > Python [2.7] > IDLE (Python GUI)), type in import os, and try those selected hyperlinks manually. For example:os.path.exists(r"F:\Lp04\PROV NORTHGLEN\DWG\SHEET 1.DWG")
Just in case, let's test these two lines too:os.path.exists(r"F:")
os.path.exists(r"C:")
Let me know the results.