wwftp::FtpRenameFile
Renames a file on the server
o.FTPRenameFile(lcOldName, lcNewName)
0 or error code.
Parameters
lcOldName
Original filename on the server.
lcNewName
New filename on the server.
Example
oFTP = CREATE("wwFTP")
oFTP.FTPConnect("ftp.west-wind.com","jdoe","hispassword")
IF oFTP.FTPRenameFile("/uploads/marcelo.dbf","/uploads/marcelonew.txt") # 0 ? oFTP.cErrorMsg RETURN ENDIF
? "File renamed..."
oFTP.FTPClose()
See also
Class wwFtp (deprecated)© West Wind Technologies, 2025 • Updated: 2025-03-12
Comment or report problem with topic