English
Forum

FTP ("DownLoad"... - 2

 

Muemmelmann
Hello, I have a problem, ..... geeeeeeht not, Why ???????
CompileMarkSeparation
Cls
print FTP("Connect","freeftp","freeftp","ftp.xprofan.com","21")
print FTP("SetBinary",1)' muß hier nicht sein...
print FTP("GetFileSize","kurt.txt"), "Byte"
print FTP("Download","kurt.txt","C://Users/uweskarke/Desktop/kurt.txt")
waitinput
print FTP("Disconnect")
>

Result on-screen:
1
1
4 byte
0
1
...means, link to that Server goes, Kurt with 4 byte becomes too found,
kurt.txt becomes on the Desktop prepares, though as vain File...

where Please klemmt the shoe ????

LG
Uwe

Edit: Please code-Tags use, so can rather testing and is übersichtlicher.
Hab's time vorgemacht
 
02/20/14  
 




Jürgen
Strahl
"C:\\Users\uweskarke\Desktop\kurt.txt" instead of "C://Users/uweskarke/Desktop/kurt.txt"
 
----------------------------------------------------------------------------
---Wer hier Schreibfehler findet, darf sie behalten .---
---Wer keine findet, hat Pech gehabt.----------------------
---------------------------------------------------------------------------
02/20/14  
 




E.T.
something umgestrickt, so can eachone testing (and funzen tut's too yet) :
CompileMarkSeparation
Cls
print FTP("Connect","freeftp","freeftp","ftp.xprofan.com","21")
print FTP("SetBinary",1)' muß hier nicht sein...
print FTP("GetFileSize","kurt.txt"), "Byte"
Var Ziel$ = winpaths() + "\\kurt.txt"
print "Ziel:",Ziel$
print FTP("Download","kurt.txt",Ziel$)
print "FTP-Meldung:",$FTPStatus'Statusmeldung von FTP - immer interessant.
waitinput
print FTP("Disconnect")
End

Proc WinPaths

    Declare Nummer%, Out$
    Nummer% = 16'Desktop des akt. Benutzers
    DEF @GSFP(4) ! "Shell32","SHGetSpecialFolderPathA"
    Out$ = Space$(255)
    GSFP(0,ADDR(Out$),Nummer%,0)
    Return @Trim$(Out$)

ENDPROC


Perhaps. not only simply whom View source from the Help copy, separate too above to think: Local and FTP benefit once Backslash and once Slash.
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
02/20/14  
 




Muemmelmann
Hello M.

with the whom BS and Slash I had yesterday already probiert, there the my first supposition was, helped but not. your Info with status FTP power sense, on it lying it too somehow, versteh only not How so it with you working and here nicht….

1
1
4 byte
target: xxxxx 'stimmt so
0

FTP-Message: 425 Cold hardship open data connection to port 49218: No route to host

FTP-Error 425 can on a FTP-Client zurückgegeben go, if the Server none Socket for Datenübertragung open kann…

LG
Uwe
 
02/21/14  
 




Muemmelmann
... it speaks simply not me !!!
CompileMarkSeparation
Cls
var ziel$ = getdir$("@")+"\kurt.txt"
print ziel$
print FTP("Connect","freeftp","freeftp","ftp.xprofan.com","21")," FTP-Meldung:",$FTPStatus
print
print FTP("SetBinary",1), " FTP-Meldung:",$FTPStatus
print
print FTP("GetFileSize","kurt.txt"), " FTP-Meldung:",$FTPStatus
print
print FTP("Download","kurt.txt",ziel$), " FTP-Meldung:",$FTPStatus
print
waitinput
print FTP("Disconnect"), " FTP-Meldung:",$FTPStatus
waitinput
28 kB
Hochgeladen:02/21/14
Downloadcounter129
Download
 
02/21/14  
 




Paul
Glatz
can you The File with a others FTP Program download?
 
02/21/14  
 




E.T.
can I not understand. with Your last example (on Desktop stored):


27 kB
Hochgeladen:02/21/14
Downloadcounter184
Download
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
02/21/14  
 




Michael
Wodrich
but not the Desktops ought to rather a directory chosen go, in the one too always Schreibrechte has. this is at Desktop not always given.

PS.:
by me runs it, but the Firewall having itself To word gemeldet.
 
XProfan X2
Windows (TM) Vista Ultimate, Core(TM) i7 920 @ 2.67GHz, 9206,26 MB

Programmieren, das spannendste Detektivspiel der Welt.
02/21/14  
 



often is the cause for such Error Rolands FTP-functions that Download and Upload often asynchron to that Programmablauf happen. I had the of course already hunderfach notice and Workarounds posted (see iFTP-Diskussionen) but it'll official not enough notice.
 
07/09/14  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

9.821 Views

Themeninformationen



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!


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