Loading...
Select Version
&pagelevel(4)&pagelevel
The rename command changes the name of a file on the remote host.
rename |
<remote-file1> <remote-file2> |
<remote-file1>
Old name of the file.
<remote-file2>
New name of the file.
Any existing file is generally overwritten, but not in the DMS directory.
Example
The remote host is a Unix host.
Query the name of the remote working directory.
pwd 257 "/usr/tcptest/man/sam/to.bs2000" is current directory.
Rename the remote file anton to zwaton.
rename anton zwaton 350 File exists, ready for destination name 250 RNTO command successful.