Autor Beitrag
Fighter#1
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: Mo 03.04.06 19:32 
So ich habe es nun geschaft mich bei meinem FTP Server einzuloggen.
Jetzt will ich die Dateien und Ordner auflisten lassen.
Bis jetzt siehts so aus.
ausblenden Hier Mein Code
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
ClientSOcket1.Port:=21;
CLientSOcket1.Host:='ftp.xxx.de';
ClientSocket1.Open;
 ...

ClientSOcket1.Socket.SendText('USER xxx'+#13+#10);
//Antwort kommt alles Supi
ClientSOcket1.Socket.SendText('PASS xxx'+#13+#10);
//wieder alles Super, User ... Succesfully Connected oder so;
ClientSOcket1.Socket.SendText('SYST'+#13+#10);
//wieder alles Super;
ClientSocket1.Socket.SendText('CWD'+#13#10);
// Immer noch ook;
ClientSocket1.Socket.SendText('List'+#13+#10);
//Jetzt der Fehler (Also vom server die Antowrt)
  425 Unable to build data connection: Invalid argument;

Ich will eigentlich nur aufgelistet bekommen was es für Verzeichnisse gibt.

_________________
Wer andere beherrscht ist stark,
wer sich selbst beherrscht ist mächtig. Lao Tse
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 03.04.06 20:03 
Moin!

Da waren wir doch schonmal: nimm die Indies oder lies mal endlich den RFC... :roll: ;)

Guckst du

cu
Narses
Fighter#1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: Mo 03.04.06 20:36 
in ordnung
OK in der RFC steht retr zum empfangen von Dateien.
RETR <SP> <pathname> <CRLF>

So aber der weiß doch gar nicht wohin damit.
Das sende ich ihm jeztz:

retr ip.php C:\ip.php

gibt aus:

550 ip.php C:\ip.php: No such file or directory

Was nun?

_________________
Wer andere beherrscht ist stark,
wer sich selbst beherrscht ist mächtig. Lao Tse
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 03.04.06 21:02 
Moin!

Gut, du hast zumindest in den RFC reingesehen... :|

Was bedeuten denn die einzelnen Elemente des Kommandos? Schonmal nachgesehen? Sicher, dass es das ist, was du annimmst? ;)

cu
Narses