Code: Select all
InitNetwork()
If OpenFTP(0, "server", "userID", "password", 0)
SetFTPDirectory(0, "/interface")
SetFTPDirectory(0, "ftp")
SetFTPDirectory(0, "prod")
CurrDir$ = GetFTPDirectory(0)
Debug "Current directory on remote server is " + CurrDir$
Debug "Remote directory listing is as follows:"
If ExamineFTPDirectory(0)
While NextFTPDirectoryEntry(0)
Debug FTPDirectoryEntryName(0)
Wend
EndIf
CloseFTP(0)
Else
MessageRequester("Error", "Can't connect to the FTP server")
EndIf
What am I doing wrong???
Tnx.
Tom