RENAME (Rename a File on a Remote System)

The RENAME IBM® i FTP client subcommand renames a file on a remote system.

FTP client subcommand

REname originalname newname

originalname
The present name of the remote file.
newname
The new name of the remote file. If the file specified by newname already exists, the new file replaces it.

This example renames the file SPORTSCAR.BMP in directory IMAGES on optical volume PICTURES to CAR.BMP:

REN /QOPT/PICTURES/IMAGES/SPORTSCAR.BMP
 /QOPT/PICTURES/IMAGES/CAR.BMP
Note: On the IBM i operating system, you cannot rename a file to a different file system.