Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP suddenly return problem
Message
From
12/12/2006 13:59:43
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01176778
Message ID:
01176950
Views:
15
>hi all,
>i have several small programs that have been developed over the years for different customers. i am in the middle of consolidating these into one application for ease of maintainance and everything is going ok except for an ftp app we have. it copies files, zips and encrypts and then sends them to an ftp server for backup. the line of code below always worked without a problem, returning a value other than 0. now it is returning 0, indicating a failed send, but sending the file correctly!
>
>lhFTPFile = FtpPutFile(lhFTPSession, FTPsendfile, FTPsendfile, 2, 0)
>
>any ideas would be great

For critical stuff, I get the file back under a different name, then compare the files (filetostr(theFile)==filetostr(ReturnedCopyOfFile)), and then delete this temp file.

I'm using Chilkat freebie OCX, and didn't have this problem, but then I assume it's also just a wrapper around the API. At least it would return some meaningful error text, not just a zero.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform