STOPLOG Stop saving ScriptFTP output to a text file
This command is useful if, for example, you are about to send by email the log file, delete or upload it to another place. It makes ScriptFTP to close the log file and unlock it.
# Connect to the FTP server $result=OPENHOST("127.0.0.1","carl","123456") # If the connection attempt fails stops the # execution of the script IF($result!="OK") STOP END IF # Start logging the downloaded files to a text file LOGTO("transfer_log.txt",APPEND) # Download the files GETFILE("*.*") # Stop logging STOPLOG # Close the connection with the FTP server CLOSEHOST