The following example shows how to rename a file:
TJamFileOperation.Rename('C:file.exe', 'New name.exe');