Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP error on loop
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Title:
FTP error on loop
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2008 R2
Network:
Windows Server 2008 R2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01647704
Message ID:
01647704
Views:
40
Hi all,
I have a program that will upload a file via FTP to a remote server. It works well is there is just 1 file, however if there are multiple files then I get an error on the 2nd and subsequent files about variable nFtpPort. the code that I call is below and I pass the variable correctly as it works when there is only 1 file. Any help appreciated as I'm a bit stuck.
PARAMETERS pcServer,pnPort,pcUser,pcPass,pcLocalName,pcFtpName

SET PROCEDURE TO wwftp addi

LOCAL o as wwFtp

o=create("wwFTP")

o.lPassiveFtp = .T.

o.nFtpPort = pnPort

? o.FTPConnect(pcServer,pcUser,pcPass)

? o.FtpSendFileEx2(pcLocalName,pcFtpName)

o.FtpClose()

o=null

WAIT clear
~M
Go raibh maith agat

~M
Next
Reply
Map
View

Click here to load this message in the networking platform