Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Too many parameters for command 'synchronize' when adding EXIT

Or remove the quotes, as they are not needed:
-filemask=*.*

Or remove whole -filemask=*.*, as it has no effect anyway:
"synchronize remote ""\\10.10.10.1\FTP Documents\FTP\"" /in/FTP/DOC/"


See also https://winscp.net/eng/docs/commandline#syntax
NaPeK

Gr8 now it working fine thank You
Mister H

"synchronize remote -filemask="*.*" ""\\10.10.10.1\FTP Documents\FTP\"" "/in/FTP/DOC/"

You probably need to double quote -filemask=""*.*"" and also remove the extra double quote before the destination like so:
"synchronize remote -filemask=""*.*"" ""\\10.10.10.1\FTP Documents\FTP\"" /in/FTP/DOC/"
NaPeK

Too many parameters for command 'synchronize' when adding EXIT

One line CMD:
"C:\Program Files (x86)\WinSCP\WinSCP.com" /log="c:\LOG\winscp.log" /ini=nul /command "open ftp://user:pass@ftp.com" "synchronize remote -filemask="*.*" ""\\10.10.10.1\FTP Documents\FTP\"" "/in/FTP/DOC/" "exit"