Re: Automatic Script to Synchronize remote directory to local directory
The error refers to this line:
Your batch file syntax is wrong.
You have specific instance of this issue:
https://winscp.net/eng/docs/faq_batch_file#newline_escaping
Also, the
The correct syntax would be:
# Synchronize Remote to Local d:\
Your batch file syntax is wrong.
You have specific instance of this issue:
https://winscp.net/eng/docs/faq_batch_file#newline_escaping
Also, the
//
should not be there.
The correct syntax would be:
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\winscplog\WinSCP.log" /ini=nul ^
/command ^
"open ftp://xxxx:xxxx@10.x.x.x/" ^
"# Synchronize Remote to Local d:\" ^
"synchronize local -delete D:\ftproot\SysExpDat\CDR /SysExpDat/CDR" ^
"# Disconnect" ^
"exit"