Function With RenameFile you can rename a file.
Example rename oldName="C:\images\p100.gif"  newName="C:\images\logo.gif"

The file "C:\images\p100.gif" is renamed to  "C:\images\logo.gif".

Format RenameFile oldName="sourcefile"  newName="destinationfile"

The file is renamed.  If a file with the new name already exists,  no action is performed.

With

if Q[ok]
...
endif

you can query whether the rename operation has been successful. 

Components GuiXT + InputAssistant