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
...
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--