vilian wrote:Hi Enrico,
Thanks for help.
I changed the folder for a sub-folder. The program initiates the transference, the archive is created in the selected folder, but the sending is not finishes, stopping the system!
Vilan
Il you are transmitting several files at the same time, yo will need to create one connection per file like the sample below otherwise you will be missing files and it couls hang, i have been through this
FOR I = 1 TO LEN(TFIC)
AADD(HCON,NIL)
hCon[I] = INTERNETCONNECT( hInternet, DSITE,0, DUSER, DPASS, INTERNET_SERVICE_FTP, 0,0 )
IF HCON[I] = 0
MSGINFO("ERREUR Création CONNEXION FTP ... Abandon transmission ")
RETURN .F.
ENDIF
DFICL := CurDir() + "\SORTANT" + ALLTRIM(TFIC[I]) // Fichier local
DFICR := ALLTRIM(DDIR) + ALLTRIM(TFIC[I]) // FICHIER REMOTE
IF FTPPUTFILE( hCon[I], DFICL, DFICR, 0, 0 )
AADD(LOGOUT,TFIC[I])
ENDIF
INTERNETCLOSEHANDLE( hCon[I] )
NEXT
HTH
Richard