| |
|
|
 | ICh möchte una FTP Manager programa. Nun stehe Yo antes el Problema Un Información general el Datein vom FTP Server en el Stil vom @loadfile$ Diálogo zuerstellen. Kann me alguien helfen? |
|
|
| |
|
|
|
 | Hilft Usted el Ver código fuente de iFTP [...] ? |
|
|
| |
|
|
|
 | Leider nein aber trotzdem danke |
|
|
| |
|
|
|
 ByteAttack | Besser wäre lo, se veces el wininet.dll genauer durchzulesen. Ejemplo para VB: [...]  |
|
|
| |
|
|
|
 | GEht el no irgendwie einfacher? |
|
|
| |
|
|
|
 | XProfans FTP-Características son bastante ok -
wo genau liegt porque Su Problema?
Beim Entwurf uno Dialoges? |
|
|
| |
|
|
|
 ByteAttack | Sí, el FTP-Características son OK, si uno se sólo una Server beschäftigt. Je después de Server son ListDir diferente Formate de. Ejemplo1: 04-28-10 07:22PM <DIR> ACCESS
Ejemplo2: drwxrwxr-x 2 10490 100 4096 May 20 2005 Acrobat
u.s.w..... Deswegen eignet el wininet viel mejor. |
|
|
| |
|
|
|
 ByteAttack | Tiempo una kleines Ejemplo: KompilierenMarcaSeparaciónUSERMESSAGES 16
Declare WIDLL&,Session&,s$,ihdl&,Adresse$,User$,Pass$,data#,Liste&
Declare Sz&,L#,ende%,IConnect&,dhdl&,do&,anzdat&,ftpfile$
Dim L#,4
Long L#,0 = -1
dim data#,318
clear data#
s$="FTPSESSION\z"
Adresse$="ftp.adobe.com"+"\z"
User$="anonymous"+"\z"
Pass$="guest@unknown"+"\z"
WIDLL&=UseDLL("wininet.dll")
$I WININET.INC
Def GetSysColor(1) !"USER32","GetSysColor"
WindowStyle 26
WindowTitle "FTP-Test mit der WININET.DLL"
Window ((%maxX/2)-320),((%maxY/2)-240)-640,480
Cls GetSysColor(15)
Liste&=create("sortedlistbox",%hwnd,"",5,5,(width(%hwnd)-10),(Height(%hwnd)-30))
Sz&=@Create("StatusWindow",%HWND,"",1,L#)
ihdl&=InternetOpenA(addr(s$),0,0,0,0)
UseCursor 2
'InternetConnect Lib "wininet.dll" Alias _
' "InternetConnectA" (ByVal hInternetSession As Long, _
' ByVal sServerName As String, ByVal nServerPort As Integer, _
' ByVal sUsername As String, ByVal sPassword As String, _
' ByVal lService As Long, ByVal lFlags As Long, ByVal _
' lContext As Long) As Long
IConnect&=@InternetConnectA(ihdl&,addr(Adresse$),21,addr(User$),addr(Pass$),1,0,0)
SetText Sz&,0,"Handle: "+Str$(ihdl&)
dhdl&=FtpFindFirstFileA(IConnect&,0,addr(data#),2147483648,0)
do&=1
while do&
if do&
if long(data#,0)=16
ftpfile$="> "+string$(data#,44)
elseif long(data#,0)=0
ftpfile$="> "+string$(data#,44)
else
ftpfile$=string$(data#,44)
endif
addstring(Liste&,ftpfile$)
endif
inc anzdat&
do&=InternetFindNextFileA(dhdl&,data#)
endwhile
UseCursor 0
WhileNot ende%
WaitInput
If %Umessage=16' X
ende%=1
endif
EndWhile
InternetCloseHandle(IConnect&)
ref='./../../references-fonction/XProfan/freedll/'>FreeDLL WIDLL&
|
 |
|
| |
|
|
|
 | Gracias schön primero... Marc du hast de el Listdir Befehl gesprochen. Lo se tatsächlich una Filemanager para 1 Server ser. Würde lo así einfacher ir? |
|
|
| |
|
|
|
 Paul Glatz | Nur para una Server (siempre una y selbe???) |
|
|
| |
|
|
|
 | |
|
| |
|
|