# this code is to change the contact name def changescriptname begin oldName = $shellscript_directory + "/" + @a_scriptfilename + ".sh" newName = $shellscript_directory + "/" + @a_changescriptname + ".sh" File.rename(oldName, newName) @scriptfilechangeresult = "File Renamed!" $currentscriptname = @a_changescriptname rescue @scriptfilechangeresult = "rename error" end end