ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Need help writing a script? Have any question about ScriptFTP?
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:
Running D:\Upload\backup.ftp
***** Script error on line 8, column 1: EOF expected
date=GETDATE(WEEKDAY)
^
Does anyone know how I can fix this please? The script is below (I have XXX the FTP details):
Code: Select all# # 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  
Thanks,
Steve.
Hello,

Try:
Code: Select all$date=GETDATE(WEEKDAY)
HTH

Zythan
I change all references of date to $date and it worked fantastic.

Thanks for your help.