Upload file via FTP from Excel VBA was very helpfull, I'm using the code to synchronize a local folder to my FTP server.
Call Shell( _
CurrentProject.Path & "WinSCP.com /log=" & CurrentProject.Path & "ftp.log /command " & _
"""open ftp://user:[email protected]/"" " & _
"""synchronize local " & localfolder & " /www/remotefolder/wines -filemask=""*.png"" " & _
"""exit""")
I'm trying to issue an exit
command at the end, but the code gives me a
Too many parameters for command 'synchronize'.
The line in the log tells me
synchronize local C:localfolderwines /www/remotefolder/wines -filemask=*.png exit
The exit
is in the same line as the synchronize
one, when I use the put script this doesn't happen. What can I do to prevent this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…