Re: Automation filetransfer/backup Batch Script
Looks good.
option batch continue
option confirm off
#Connect to Remote Ftp Server, then map the folder paths
open username@fmsftp.server.no
lcd "E:\Agresso\Data Files\agresso\Data Import\EHF"
cd /out
#Move only the remote files to the local directory
synchronize local "E:\Agresso\Data Files\agresso\Data Import\EHF"
#Then delete all .xml files older than 1 day on the FTP Server
rm *.xml<1D
exit
option batch on
option confirm off
#Connect to server
open username@fmsftp.ftpserver.no
#Simply move the files from the FTP server to a local folder
option transfer binary
cd /
get /out "E:\Agresso\Data Files\agresso\Data Import\EHF backup"
exit