I wrote the following script to try and PRINT if a file transfer was successful, however, I'm not getting the "PRINT" to work.
I'm trying to use the "226 Transfer complete" (this is visible when Verbose logging is enabled).
I don't havfe to use the "226 Transfer complete option", but I'm not sure of how to do it another way.
Any help would be much apprecaited
My script is below:
I'm trying to use the "226 Transfer complete" (this is visible when Verbose logging is enabled).
I don't havfe to use the "226 Transfer complete option", but I'm not sure of how to do it another way.
Any help would be much apprecaited
My script is below:
FTP Script
- VERBOSE(ON)
- #Create the log file name
- $logfile="C:\logs\transferlog-".$date.".txt"
- # Connect to server and store the
- # return value of OPENHOST in $result
- # If the result is "OK" transfer the
- # files and disconnect
- # If the result is "226 Transfer complete"
- # Print on the screen "Transfer successful"
- # ------- Edited by ScriptFTP support ------
- # The correct way to check if PUTFILE was correct
- # is to check if $transresult=="OK"
- # See posts below
- # -----------------------------------------------
Thanks but I found my own error - had a type-o.
Just to mention - this software is awesome!
Super easy to use.
Just to mention - this software is awesome!
Super easy to use.
Hi there,
The user contacted me by email. Here is my reply:
The correct way to check if PUTFILE was successful is this:
The user contacted me by email. Here is my reply:
The correct way to check if PUTFILE was successful is this:
liked Script FTP? Try our other product Email Parser