Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Text Datei auf FTP Server hochladen (https://www.delphipraxis.net/179124-text-datei-auf-ftp-server-hochladen.html)

fox67 15. Feb 2014 20:00

Text Datei auf FTP Server hochladen
 
Delphi-Quellcode:
x := TStringlist.Create;
x.LoadFromFile(extractfilepath(application.ExeName)+'\'+combobox1.text+'.txt');
x.Add(Datum+'|'+inttostr(Kilometer)+'|'+inttostr(Punkte)+'|'+'Datei');
deletefile(extractfilepath(application.ExeName)+'\'+combobox1.text+'.txt');
x.SaveToFile(extractfilepath(application.ExeName)+'\'+combobox1.text+'.txt');
 if ftp.Connected then
 begin

showmessage(combobox1.Text);
showmessage(Datum+'|'+inttostr(Kilometer)+'|'+inttostr(Punkte)+'|'+ 'Datei');
FTP.Delete(combobox1.text+'.txt');

FTP.Put(combobox1.text+'.txt',extractfilepath(application.ExeName)+'\'+ combobox1.text+'.txt',true);
Hallo es kommt immer die Fehlermeldung das der Dateiname Invalid sei aber er konnte komiuscherweiße ohne Fehlermeldung davor die Datei löschen auf dem ftp server

Sir Rufo 15. Feb 2014 20:45

AW: Text Datei auf FTP Server hochladen
 
Schau in die Dokumentation zu deiner FTP-Komponente und der Parameter, dann erkennst du auch deinen Fehler


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:37 Uhr.

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