PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Rename a file on an FTP server.
FTPRenameFile (Example)
Rename a file on an FTP server.
WINDEVWEBDEV - Server codeReports and QueriesJavaUser code (UMC)Ajax This example is used to rename a file found on the FTP server from the current computer.
nConnection is int
nConnection = FTPConnect("ftp.cdrom.com", "GUEST", "")
IF nConnection = -1 THEN
Error("Unable to establish the connection to the server")
ELSE
IF FTPRenameFile(nConnection, "Hello.txt", "Hi.txt") = True THEN
Info ("The file was renamed")
ELSE
Error("The file has not been renamed")
END
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment