# this code is to change the contact name def changeeventdata oldName = $rwdschedule_directory + "/" + @a_viewevent + ".sch" newName = $rwdschedule_directory + "/" + @a_changeeventdata + ".sch" begin File.rename(oldName, newName) @eventfilechangeresult = "File Renamed!" rescue @eventfilechangeresult = "rename error" end end