; Create a new log file every time the script runs. ; The log will have the date in it like this: ; daily_upload Oct 30 15.38.43 2007.log ; The file name for the log will be stored in the ; %currentlogfile script variable log "daily_upload" /new ftplogon "myuploadsite" sendfile "file_to_be_uploaded.txt" iferror goto send_error set status = "SUCCESS" goto done_sending :send_error set status = "FAILURE" :done_sending EMAIL "Daily upload results. See attached file for details." /subject=status /attach=%currentlogfile