Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
please write some more documentation
#6
Hello to all,

I need help to clarify how to download a file thru ftp.

I have just one file to download " example.zip' and it is binary with a size of 31mgb.
Please help me with a simplified command.


I found these from the samples but I find it lengthy and complicated to understand.
I would appreciate if color can be instructed for mandatory input and another color for
variable.

Can anybody explain line by line also what these means?


Enumerate files and folders in current ftp directory:
WIN32_FIND_DATA fd
lpstr s=f.Dir("*" 2 &fd)
rep
if(s=0) break
if(fd.dwFileAttributes&FILE_ATTRIBUTE_DIRECTORY) out "%s (directory)" s
else out s
s=f.Dir("" 2 &fd)

Change current local directory:
SetCurDir "c:\Users\Ver\Desktop\"
function# $ftpfile $localfile [failifexists] [ascii]

if(FtpGetFileW(m_hi @ftpfile @_s.expandpath(localfile) failifexists FILE_ATTRIBUTE_NORMAL iif(ascii FTP_TRANSFER_TYPE_ASCII FTP_TRANSFER_TYPE_BINARY) 0)) ret 1
Error

Thank you for welcoming me into your forum!

Sincerely ,

Josh


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)