I have just updated ScriptFTP to V3.3 from an older V2.x version and the script I was running is now showing an error:
Steve.
Running D:\Upload\backup.ftpDoes anyone know how I can fix this please? The script is below (I have XXX the FTP details):
***** Script error on line 8, column 1: EOF expected
date=GETDATE(WEEKDAY)
^
Code: Select all
Thanks,#
# Script language reference http://www.ScriptFTP.com/?go=LANGUAGE
# Script Examples    http://www.ScriptFTP.com/?go=EXAMPLES
#
# Save it and click Run on the ScriptFTP window.
# Get Todays Day
date=GETDATE(WEEKDAY)
# Connect to FTP server
OPENHOST("ftp.xxx.com","xxx","xxx")
# Make Days Directory on FTP if does not exist.
MKDIR(date)
# syncronize remote files from D:\upload\transfer
SYNC("d:\upload\transfer",date,UPLOAD,SUBDIRS)
#Transfer finished, close the connection
CLOSEHOST
# Close Window
EXIT
Â
Steve.
I change all references of date to $date and it worked fantastic.
Thanks for your help.
Thanks for your help.