Couple of things. One method I use for this is...
gp.CalculateField_management(fc + "\\Parcels.shp", '"%s" % (!SIT_FULL_S!.replace('"','')'), "PYTHON", "")
Regarding the code and your error. The 999999 is very generic.Looking at this code, I don't see how it could possibly work as intended.Why are you looping through all the objects in ListWorkspaces() and then doing rows = gp.UpdateCursor("//Parcels.shp")? Aren't you just reopening the same shape file? Couldn't you just do?
rows = gp.UpdateCursor("//Parcels.shp")
for row in rows:
row.name = row.GetValue("Name").replace("-", "")
rows.updateRow(row)
del row
del rows
import arcgisscripting
import logging
logger = logging.getLogger()
gp = arcgisscripting.create(9.3)
gp.OverWriteOutput = True
gp.Workspace = "C:\ZP4"
fcs = gp.ListWorkspaces("*","Folder")
for fc in fcs:
print fc
rows = gp.UpdateCursor("//Parcels.shp")
row = rows.Next()
while row:
name = row.GetValue("Name")
dash = string.find(name, "-")
if dash != -1:
fix = name.replace("-", "")
del row, rows