# this code is to change the file name def changeicseventdata if ! @a_viewicsevent.empty? oldName = $rwdschedule_directory + "/" + @a_viewicsevent + ".ics" if ! @a_changeicseventdata.empty? newName = $rwdschedule_directory + "/" + @a_changeicseventdata + ".ics" begin File.rename(oldName, newName) @eventicsfilechangeresult = "File Renamed!" rescue @eventicsfilechangeresult = "rename error" end end end end