ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / FTP functions
  • Example: Identifying and modifying the current directory.
FTPCurrentDir (Example)
Example: Identifying and modifying the current directory.
Reports and Queries
This example is used to identify the current directory on the FTP server and to modify this current directory
nConnection is int
nConnection = FTPConnect("ftp.cdrom.com")
 
// Identify the current directory
sCurrentDir is string
sCurrentDir = FTPCurrentDir(nConnection)
Info("The current directory on the server is: " + sCurrentDir)
 
// Attempt to position in the /TEMP directory
IF FTPCurrentDir(nConnection, "/TEMP") THEN
Info("The change of directory was performed")
ELSE
Error("The change of directory failed")
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