Autor Beitrag
Markus254
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 23

Winnt2000
d7 Prof
BeitragVerfasst: Mi 04.06.08 17:43 
Guten Tag alle Miteinander :lol:

Ich will folgendes:
In einem Programm soll im Hintergrund eine FTP-Verbindung geöffnet werden und eine Datei hochgeladen werden. Es dient dazu, Fehlerprotokole hochzuladen, Informationen, was der User will etc.
Nun, ich suche einen Befehl, der das erledigt, es darf KEINE externe Komponente(Indy etc) sein !
Das herunterladen ist ja sehr einfach mit "URLDownloadToFile", vieleicht gibt es etwas änliches.
Hab schon überall gesucht, ohne Erfolg :oops:

Gruss
Markus254
Clemens L.
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 158

Win Xp SP3
D6 Enterprise, Turbo Delphi Explorer
BeitragVerfasst: Mi 04.06.08 17:55 
ICh würde sagen, da musst du mit einem Socket das Protokoll selbst implementieren!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 04.06.08 18:02 
Moin!

user profile iconMarkus254 hat folgendes geschrieben:
In einem Programm soll im Hintergrund eine FTP-Verbindung geöffnet werden
[...]
Nun, ich suche einen Befehl, der das erledigt, es darf KEINE externe Komponente(Indy etc) sein !
Nun, dann mach dich mal hier und hier schlau, und dann "Gut Holz" beim Coden... :lol:

Mal ernsthaft: warum keine Komponenten? Einen "Befehl" gibt es für FTP nicht... :?

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mi 04.06.08 18:02 
Mal ne blöde Frage.. Wieso keine externe Komponente?

Wenn du die Indies nimmst, bekommt der Anwender davon doch nichts mit (es werden keine zusätzlichen Dateien benötigt o.ä.).

Ansonsten musst du wohl das Protokoll selber einbauen, oder das Windows-Kommandozeilen Tool "ftp" aufrufen und bedienen.
Markus254 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 23

Winnt2000
d7 Prof
BeitragVerfasst: Mi 04.06.08 18:56 
THX schonmal :wink:

Es soll ohne Komponente sein, damit man es mit WDSibyl machen kann.
(www.WDSibyl.org)

THX Narses für die Links, muss sie mir noch anschauen :P
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mi 04.06.08 19:37 
Musst du halt per Hand über Sockets FTP implementieren. So kompliziert ist das Protokoll ja zum Glück nicht.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
Clemens L.
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 158

Win Xp SP3
D6 Enterprise, Turbo Delphi Explorer
BeitragVerfasst: Mi 04.06.08 20:50 
Wenn es bei WDSibyl Sockets gibt :P
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 04.06.08 23:18 
Hier www.michael-puff.de/...er/Delphi/Programme/ habe ich einen nonVCL FTP-Client. Der Code dürfte aber fürchterlich sein, da er schon ziemlich alt ist.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 05.06.08 02:44 
user profile iconNarses hat folgendes geschrieben:
user profile iconMarkus254 hat folgendes geschrieben:
Nun, ich suche einen Befehl, der das erledigt, es darf KEINE externe Komponente(Indy etc) sein !
Nun, dann mach dich mal hier und hier schlau, und dann "Gut Holz" beim Coden... :lol:

Mal ernsthaft: warum keine Komponenten? Einen "Befehl" gibt es für FTP nicht... :?
msdn.microsoft.com/e...aa384153(VS.85).aspx, diese Befehle hat user profile iconLuckie auch in dem FTP-Client verwendet. ;-)
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Do 05.06.08 02:56 
Da gibts WinINet-Befehle zu? Wie langweilig. Protokoll selber coden wäre eine sinnvollere 'Strafe' für die Verwendung dieses komischen Compilers ;)

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 05.06.08 09:52 
Moin!

user profile iconjaenicke hat folgendes geschrieben:
msdn.microsoft.com/e...aa384153(VS.85).aspx, diese Befehle hat user profile iconLuckie auch in dem FTP-Client verwendet. ;-)
:shock: Man lernt nie aus... :nixweiss: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.


Zuletzt bearbeitet von Narses am Do 05.06.08 19:02, insgesamt 1-mal bearbeitet
Markus254 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 23

Winnt2000
d7 Prof
BeitragVerfasst: Do 05.06.08 18:18 
user profile iconLuckie hat folgendes geschrieben:
Hier www.michael-puff.de/...er/Delphi/Programme/ habe ich einen nonVCL FTP-Client. Der Code dürfte aber fürchterlich sein, da er schon ziemlich alt ist.

Das ist ein sehr guter Source vom FTP-Client, nur leider verweisen die Funktionen auf eine DLL (wie FTPGetFile) in der Unit 'WinInet'.
Das spezielle an WDSibyl ist, das es Programme compilieren kann, die sowol unter Windoof, als auch unter dem Betriebsystem OS/2 laufen. Auf OS/2 laufen leider keine windoof-DLLs. :cry:

Aber grossen Dank Luckie !