@echo off "C:\Program Files (x86)\WinSCP\WinSCP.com" ^ /log="C:\Program Files (x86)\FTP\WinSCPbatch3.log" /ini=nul ^ /command ^ "open ftp://user:firstname.lastname@example.org/" ^ "cd FTP" ^ "cd FromCompany" ^ "lcd C:\FTP\Company\Outbound" ^ "keepuptodate C:\FTP\Company\Outbound /FTP/FromCompany" ^ "exit" set WINSCP_RESULT=%ERRORLEVEL% if %WINSCP_RESULT% equ 0 ( echo Success ) else ( echo Error ) exit /b %WINSCP_RESULT%
Within Local Directory C:\FTP\Company\Outbound, there are 5 subdirectories.
I tried using `synchronize both` but when i ran it, it compared all 5 directories and then tried to reupload every file again. Is there something I am missing?
Thanks for the help!