# this code is to archive the event def archiveevent oldName = $rwdschedule_directory + "/" + @a_viewevent + ".sch" newName = $rwdschedule_directory + "/" + "archive" + "/" + @a_viewevent + ".sch" begin File.move(oldName, newName) @eventfilechangeresult = "event archived" rescue @eventfilechangeresult = "archive error" end end