Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FTP - I can connect, but can't list folders on FTP??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Titre:
FTP - I can connect, but can't list folders on FTP??
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01018567
Message ID:
01018567
Vues:
46
For some reason, I can connect to the FTP server just fine...but when I try to do this:

llSuccess = loFTP.GetDirectory()

... llSuccess returns a .F.

I know the FTP is working ok, because I can connect to it just fine with an FTP client (WS_FTP Pro). Does anyone see what I might be doing wrong? Is it a user permissions problem or something? The FTP is running on a WIndows 2003 Server.....

Thanks!



*-- Instantiate the FTP object
loFTP = CREATEOBJECT("FTP")

*-- Verify the FTP object was instantiated successfully
IF VARTYPE(loFTP) = "O" AND ! ISNULL(loFTP)
loFTP.cServerName = lcServerName
loFTP.cUserName = lcUserName
loFTP.cPassword = lcPassword
loFTP.lPassive = .F.
loFTP.lBinary = .T.

loFTP.cSourceFolder = "/Outbound/"
loFTP.cTargetFolder = LOWER(ADDBS(FULLPATH("Inbound\")))

loFTP.cFileName = "timestamp.txt"

*-- Test FTP server connection before continuing
llSuccess = loFTP.CONNECT()

*------------------
IF llSuccess
loFTP.Disconnect()

*-- Retrieve directory listing from the FTP server
llSuccess = loFTP.GetDirectory()
ICQ 10556 (ya), 254117
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform