Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

rename - Rename file on FTP server

Syntax

rename(f,'oldname','newname')

Description

rename(f,'oldname','newname') changes the name of the file oldname to newname in the current directory of the FTP server f, where f was created using ftp.

Examples

Connect to server testsite, view the contents, and change the name of testfile.m to showresults.m.

test=ftp('ftp.testsite.com');
dir(test)
.              ..       testfile.m
rename(test,'testfile.m','showresults.m')
dir(test)
.              ..       showresults.m

See Also

dir (ftp), delete (ftp), ftp, mget, mput

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS