PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Example: Identifying and modifying the current directory.
FTPCurrentDir (Example)
Example: Identifying and modifying the current directory.
WINDEVJavaUser code (UMC)
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