Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Lazarus - Synapse - Connect funzt nicht (https://www.delphipraxis.net/118774-lazarus-synapse-connect-funzt-nicht.html)

thkerkmann 14. Aug 2008 20:08

Re: Lazarus - Synapse - Connect funzt nicht
 
Hi,
ich verwende das auch und mache es so:
Delphi-Quellcode:
      ftp := tFTPSend.Create;
      ftp.TargetHost := ftpHostAddr;
      ftp.TargetPort := cFtpProtocol;
      ftp.UserName := ftpUsername;
      ftp.Password := ftpPassword;
      ftp.DirectFile := true;
      if ftp.Login then
      begin
        ftp.DirectFileName := localfn;
        if ftp.RetrieveFile('/done/' + remotefn, false) then
        begin
          // alles ok
        end
        else
        begin
          // fehlerbehandlng
        end;
        ftp.Logout;
      end
      else
        Logout('could not connect to FTP server');
      ftp.Free;
Schau mal in die ftpSend unit rein, da sind Erläuterungen im Header drin.

Gruss

LuCSteR 15. Aug 2008 10:24

Re: Lazarus - Synapse - Connect funzt nicht
 
Wtf! Besten Dank. Es lag also nur an dem Set von IP/UN/PORT/PW...Falsche Properties gewähls :(

Nochmal Danke. Arbeitest du viel mit synapse? falls ich nochmal irgendwo nicht weiter weis?


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:56 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz