how to correct this old code updated to lastest built ?

i tried to correctthis but it does not work in latest built

so can someone help to correct this propertie

#this one add a variable to the scene
bpy.types.Scene.StringProperty(name=“file path”,
attr=“custompath”, # this a variable that will set or get from the scene
description=“simple file path”,
maxlen= 1024,
default= “”) # this set the text
“”"

i tried with the following but it is not recognisez in the operator call

custompath=bpy.props.StringProperty(name=“file path”, description=“Path of the Python File to execute”, maxlen=1024, default="", subtype=‘FILE_PATH’)

but get the error
hon1\listmenu1\filepathmen2.blend\filepath2.py", line 108, in invoke
AttributeError: ‘Context’ object has no attribute ‘manager’

thanks for any help
happy 2.5