function Download(Host, User, Pass, Folder, FileName)
* download file from FTP server
Local Code
* connect to server (Host)
Code = fceConnect(0, @Host, @User, @Pass)
* error ? (negative return codes are errors)
if Code < 0
return Code
endif
* change to proper directory
Code = fceSetServerDir(0, @Folder)
if Code < 0
return Code
endif
* set binary xfer mode
fceSetMode(0, ASC("B"))
* download file to current directory
Code = fceGetFile(0, @FileName)
return Code
HOME PAGE
MARSHALLSOFT is a trademark of MarshallSoft Computing, Inc.