AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones FTP
  • Example: Identifying and modifying the current directory.
FTPCurrentDir (Example)
Example: Identifying and modifying the current directory.
WEBDEV - Código ServidorAjax
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
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local