Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP suddenly return problem
Message
 
To
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:
01176972
Views:
11
thanks Dragan, i'll look into the ocx. but i found out what my problem was in the end, the file was already there. once i deleted the existing file it was ok, i always thought that the ftp just overwrote an existing file if it found one with an identical name.
~M

>>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.
Go raibh maith agat

~M
Previous
Reply
Map
View

Click here to load this message in the networking platform