Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP via DOS BAT
Message
 
 
To
25/07/2003 16:01:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00810533
Message ID:
00813665
Views:
6
Craig,

You swapped parameters in the call to FtpPutFile. The firts parameter should be Remote file and the second - local.
IF !sz_ftp.PutFtpFile("XSJFLCP4.txt", "c:\conveyor\sirfr\xsjflcptp4.txt" )
    ?sz_ftp.GetErrorCode(.T.)
ENDIF
...

* FTP class
PROCEDURE PutFtpFile
LPARAMETERS lcRemoteFile, lclocalFile
...
>Sorry for not getting back to you. Thats what I thought would do it, but when I did that I got and error saying can not locate the file:
>
>Here's what I have to the put and FTP class:
>
>from my ftp_test.prg file
>IF !sz_ftp.PutFtpFile("c:\conveyor\sirfr\xsjflcptp4.txt", "XSJFLCP4.txt")
>    ?sz_ftp.GetErrorCode(.T.)
>ENDIF
>
>AND
>*//CAPS CAB -07/15/03 REMOVE ";" FROM END OF LINE
>*!*fResult = FtpPutFile(THIS.nConnect_Handle, @lcLocalFile, @lcRemoteFile, ;
>*!* FTP_TRANSFER_TYPE_BINARY, 0)
>  fResult = FtpPutFile(THIS.nConnect_Handle, @lcLocalFile, @lcRemoteFile, ;
>  FTP_TRANSFER_TYPE_ASCII, 0)
>*//CAPS CAB 07/15/03 -- END
>thanks for all your help.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform