ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Missing any feature or command? Post your ideas here. Suggestions are welcome.
Hi,

We search a solution to send all files in local directory except files with size less 1Ko

Is it possible ?

Original Script
FTP Script
  1. GETLIST($list,LOCAL_FILES,"ZEATTCLN*.*")
  2. # For each file in $list...
  3. FOREACH $item IN $list
  4.        # Upload the file
  5.        $result=PUTFILE($item)
Use GETFILESIZE
FTP Script
  1. GETLIST($list,LOCAL_FILES,"ZEATTCLN*.*")
  2.  
  3. FOREACH $item IN $list
  4.   IF(GETFILESIZE(LOCAL, $item)>1024)
  5.     $result=PUTFILE($item)
  6.   END IF
thanks a lot man