Autor Beitrag
TriphunEM
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Mo 05.01.04 18:38 
Ich verbinde mit indy "tidftp" auf einen pub (server mit anonymen zugang).
die pubs sind entweder WinNT oder Unix server! wie kann ich abfragen, oder wo bekomme ich die informationen her, auf welchen der beiden servertypen ich verbinde?
bei vielen ftp-client, wird der servertyp bei verbinden im protokoll mit aufgelistet! (siehe bsp.)

bsp.

ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
----------
Connect to: (05.01.2004 18:33:33)
hostname=217.160.169.153
username=anonymous
startdir=
220 ftp.mncltd.com
USER anonymous
331 Anonymous login ok, send your complete email address as your password.
PASS ***********
230-Welcome, archive user anonymous@pD9E1A2D4.dip.t-dialin.net !
230-
230-The local time is: Mon Jan  5 18:33:20 2004
230-
230-This is an experimental FTP server.  If you have any unusual problems,
230-please report them via e-mail to <root@p15112080.pureserver.info>.
230-
230 Anonymous access granted, restrictions apply.
SYST
215 UNIX Type: L8                                <<<<<<<<<<<====== HIER STEHT DER SERVERTYP
FEAT
211-Features:
211- MDTM
211- REST STREAM
211- SIZE
211 End
Connect ok!
PWD
257 "/" is current directory.
Verzeichnis einlesen
TYPE A
200 Type set to A
PORT 217,225,162,212,7,239
200 PORT command successful
LIST
150 Opening ASCII mode data connection for file list
Herunterladen
Warte auf Antwort des Servers...
226 Transfer complete.


aber mit dieser methode von tidftp :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TMainform.ftpStatus(ASender: TObject; const AStatus: TIdStatus;
  const AStatusText: String);
begin
  VerlaufsProtokoll.Lines.Add(AStatusText);
end;


bekomm ich nur diese infos

Zitat:

Verbinden mit 217.160.169.153.
Verbunden.
Verbindung hergestellt


wer kann mir helfen?

Moderiert von user profile iconPeter Lustig: Code- durch Delphi-Tags ersetzt
martin121
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Di 06.01.04 14:55 
Titel: Servertyp
Versuch mal folgenden Code:
Leg eine Variable SYSTYPE: String; an
ausblenden Delphi-Quelltext
1:
2:
IdFTP1.SendCmd('SYST');
SYSTYPE:=IdFTP1.LastCmdResult.Text.Text;

Jetzt müsstest du diesen Code an der stelle nach dem Login einfügen,
und du kannst jederzeit nach dem Login die Variable SYSTYPE aufrufen,
in der die antwort auf den SysT command steht.

Gruß Martin
ich hoffe ich konnte dir helfen
TriphunEM Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Di 06.01.04 18:16 
danke, habs aber schon. ftp.systemdesc;