ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / FTP functions
  • Renaming a file on an FTP server.
FTPRenameFile (Example)
Renaming 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

Last update: 05/26/2022

Send a report | Local help