# this code is to archive the event def archiveicsevent oldName = $rwdschedule_directory + "/" + @a_viewicsevent + ".ics" newName = $rwdschedule_directory + "/" + "archive" + "/" + @a_viewicsevent + ".ics" begin File.move(oldName, newName) @displayicsevent = "ics file archived" rescue @displayicsevent = "ics archive error" end end