This question is different to Using Calculate Field to fix hyperlinks in ArcPy gives Cannot use VB for services? which was asked previously because it is using the Python parser specifically, rather than VB.
Syntax calculates the field correctly within tool (see raw below). Copy the python snippet directly from the results window to migrate into main script, and the syntax returns as invalid. Not sure how to fix.
Raw (working):
"\\\\ftp\\raw\\" + "20160206" + "\\Win\\Charles\\" + !NAME! + ".shp"
Copied snippet verbatim (Invalid):
arcpy.CalculateField_management(outShp, "Link", """"////ftp//raw//" + "20160206" + "//Win//Charles//" + !NAME! + ".shp"""", "PYTHON_9.3","#")
Having trouble getting it to run properly, have tried adding 'r' and using different combinations of escapes and it just won't run.
\\\\ftp\\raw\\20160206\\Win\\Charles\\ u"value" .shpwhich was almost but not quite. (where value was the value in my!name!field)