I like how well your program works, but there are times when i would like to know how long my file transfers took. It would be nice if there were timestamps in the log file so i know when a certain file started transferring. Other than that i find that it works great.
Hi.
I put those lines in the start of the script
I put those lines in the start of the script
Code: Select all
Lars H.# Start-time in minutes
$minutes1=GETDATE(HOUR)*60+GETDATE(MIN)
# Print date and time
PRINT("Backup startet ".GETDATE())
And those at the end:
[quote]# Minutes used
$minutes2=GETDATE(HOUR)*60+GETDATE(MIN)
IF($minutes2<$minutes1)
$minutes2=$minutes2+1440
END IF
$timeused=$minutes2-$minutes1
# Print time used in minutes
PRINT("Transfer time was ".$timeused." minutes")
# Print date and time
PRINT("Backup finished ".GETDATE())
Last edited by Lars H. on 25 Jan 2009, 11:06, edited 1 time in total.
Thanks a lot Lars
liked Script FTP? Try our other product Email Parser