English
Forum

FTP("ListDir",s1)

 

Jörg
Sellmeyer
has it really a designed reason, that these function directly into a File writes and not z.B. into Listboxliste or a area?
If the systembedingt so is: there a Possibility the in list/area umzuleiten, without before on The disk To write?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/21/08  
 



ftp . listDir has yet at least one other trouble, The Answer weichen in the stature of Server To Server ex, the attempt The expenses To standardisieren is imho failed.

an list goes so imho therefore not, because no list zurückgegeben becomes, separate only one Kompletttext. means sooner Memory-Variable instead of File.

I had with Rolf a ftp include written, if i remember rightly I had there another Verzeichniseinlesemethode, these gives The Files too particular back. Perhaps has Rolf the still.
 
09/21/08  
 




Rolf
Koch
unfortunately find I The Inc neither More. but Perhaps somewhere as Backup.
 
09/21/08  
 




Jörg
Sellmeyer
Memory-Variable would already class. so is it then Yes slight, whom Content in a list To get. That there not one uniformly standard develops watts, find I already right strange. How creates it because then z.B. Filezilla, The data correctly anzugeben. or is the author well in the Vorausplanen and write of Algorithms, The on unterschiedlichste situations fit?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/21/08  
 




Rolf
Koch
I mean I habs found - hold not as inc.
is it still iF, or?
CompileMarkSeparation
 {$i}
declare dllhdl&,ihdl&,chdl&,dhdl&,ftpfile$,nhdl&
declare ftppfad$,listbox1&,closeftp&,ENDE%,anzdat&
cls
declare s$,do&
s$="FTPSESSIONz"
usermessages 16
cls
listbox1&:=createsortedlistbox(%hwnd,"",5,5,(width(%hwnd)-10),(Height(%hwnd)-10))
dllhdl&:=usedll("wininet")
def InternetOpen(5) !"wininet","InternetOpenA"
def InternetClose(1) !"wininet","InternetCloseHandle"
def InternetConnect(8) !"wininet","InternetConnectA"
def FtpFindFirstFile(5) !"wininet","FtpFindFirstFileA"
Def FtpFindNextFile(2) !"wininet","InternetFindNextFileA"
Def GetLastError(0) !"KERNEL32","GetLastError"
def FtpSetCurrentDirectory(2) !"wininet","FtpSetCurrentDirectoryA"
ihdl&:=InternetOpen(addr(s$),0,0,0,0)
declare server$,user$,pwdd$,mem#,data#
Hier Daten (das z muss unbedingt vorhanden bleiben!)***********
server$:=""+"z" 	SERVER zum Beispiel rokosoft.de
user$:=""+"z"		Username
pwdd$:=""+"z"		Passwort
ftppfad$:=""		Startpfad
****************************************************************
dim mem#,4
long mem#,0:=12345
dim data#,318
clear data#
chdl&:=InternetConnect(ihdl&,addr(server$),21,addr(user$),addr(pwdd$), 1,0, 0)
settext %hwnd,str$(chdl&)
FtpSetCurrentDirectory(chdl&,addr(ftppfad$))
Addstring(listbox1&,"Internet Handle: "+ str$(ihdl&))
Addstring(listbox1&,"Connect Handle: "+ str$(chdl&))
Addstring(listbox1&,"Taste drücken")
sendmessage(listbox1&,$0184,0,0)
dhdl&:=FtpFindFirstFile(chdl&,0,addr(data#),2147483648,0)
do&:=1

while do&

    if do&

        ftpfile$:=if(long(data#,0)==16," >","")+string$(data#,44)
        addstring(listbox1&,ftpfile$)

    endif

    anzdat&+
    do&:=FtpFindNextFile(dhdl&,data#)

endwhile

settext %hwnd,"Anzahl Dateien (incl. Ornder) "+str$(anzdat&)

WHILENOT ENDE%

    WAITINPUT

    IF %UMESSAGE = 16

        ENDE%=1

    ENDIF

WEND

sendmessage(listbox1&,$0184,0,0)
Closeftp&=InternetClose(chdl&)
//messagebox("FTP SESSION RETURN = "+str$(closeftp&),"FTP ENDE",0)
dispose mem#
s4 href='./../../function-references/XProfan/dispose/'>dispose data#
 
09/21/08  
 




Jörg
Sellmeyer
functions super!!

now should only FTP("Connect",...) a handle zurückliefern and not only 1 for success, then can The link beautiful easily with Profan produce and the Reading with API erledingen.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/21/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.114 Views

Untitledvor 0 min.
Jürgen Strahl12/16/23
Member 361000503/21/23
RICOSCH04/11/17
Andre Rohland01/26/14
More...

Themeninformationen

this Topic has 3 subscriber:

Jörg Sellmeyer (3x)
Rolf Koch (2x)
iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie