![]() |
Text Datei auf FTP Server hochladen
Delphi-Quellcode:
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
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); |
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 14:30 Uhr. |
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