Scripting FTP for new/modified files to go from remote server to local server.
Hi all, I have been working on this script to try to get new files or changed files from an email directory and upload them to a database server. I have been trying to do this with both scripting and PowerShell code but I haven't been successful yet. Here is what I have for the script:
This is the error it gives me:
# Automatically answer all prompts negatively not to stall # the script on errors option batch off # Disable overwrite confirmations that conflict with the previous option confirm off open usr:email@example.com # If you need to change directory eg..(cd /cme/ftp/940/Outgoing) cd /futr/9AR lcd "C:\Shares\Data\W\9AR\" synchronize local -preservetime *.csv synchronize local -filemask="*>=1D" c:\hares\Data\W\9AR\* synchronize local "C:\Shares\Data\W\9AR\" "/futr" Disconnect close exit