Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
24
Task/FTP/FreeBASIC/ftp-2.basic
Normal file
24
Task/FTP/FreeBASIC/ftp-2.basic
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#Include Once "windows.bi"
|
||||
#Include Once "clsFTP.bas"
|
||||
|
||||
Dim ftp As clsFTP
|
||||
|
||||
If ftp.Connect("ftp.ed.ac.uk", 21, "anonymous", "aaa@gmail.com") = False Then
|
||||
Print "Error connecting to server. LastError = "; ftp.LastError
|
||||
End If
|
||||
|
||||
If ftp.SetCurrentFolder("pub/courses") = False Then
|
||||
Print "Error setting current folder. LastError = "; ftp.LastError
|
||||
End If
|
||||
|
||||
Print "Current folder = "; ftp.GetCurrentFolder()
|
||||
|
||||
If ftp.DownloadFile("make.notes.tar", "make.notes.tar") = False Then
|
||||
Print "Error downloading file. LastError = "; ftp.LastError
|
||||
End If
|
||||
|
||||
ftp.Disconnect
|
||||
|
||||
Print "Done."
|
||||
|
||||
Sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue