Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FTP via DOS BAT
Message
 
 
À
25/07/2003 16:01:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00810533
Message ID:
00813665
Vues:
7
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform