Upload file via FTP from Excel VBA이 매우 유용합니다. 코드를 사용하여 로컬 폴더를 내 FTP 서버와 동기화합니다. VBA에서 WinSCP 명령 줄을 호출 할 때 "명령에 너무 많은 매개 변수"가 표시되면
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""")
나는 말미에
exit
명령을 실행하기 위해 노력하고있어,하지만 코드는 나에게 '동기화'명령에 대한
너무 많은 매개 변수를 제공합니다.
로그의 행 내가이 발생하지 않는 넣어 스크립트를 사용할 때 exit
에서, synchronize
것과 같은 줄에있는 나에게
synchronize local C:\localfolder\wines /www/remotefolder/wines -filemask=*.png exit
을 알려줍니다. 이것을 막기 위해 무엇을 할 수 있습니까?
https://winscp.net/eng/docs/commandline#syntax를 참조하십시오, 당신의 빠른 대답을 –