# this code is to change the record name def changemoviedata oldName = $rwdmovies_directory + "/" + @a_moviefilename + ".nam" newName = $rwdmovies_directory + "/" + @a_changemoviedata + ".nam" File.rename(oldName, newName) oldphotoName = $rwdmovies_directory + "/" + @a_moviefilename + ".jpg" newphotoName = $rwdmovies_directory + "/" + @a_changemoviedata + ".jpg" if File.exist?(oldphotoName) File.rename(oldphotoName, newphotoName) end end