keepuptodate / Synchronize keeps uploading everything from a directory when a new file is added
I am using
Script:
Within Local Directory C
I tried using
Thanks for the help!
keepuptodate
to watch 5 directories. When a new file is introduced to one of the directories, it recognizes the change and then starts to upload everything in the directory from Local to Remote despite it already being present in the remote directory.
Script:
@echo off "C:\Program Files (x86)\WinSCP\WinSCP.com" ^ /log="C:\Program Files (x86)\FTP\WinSCPbatch3.log" /ini=nul ^ /command ^ "open ftp://user:pass@ftp.com/" ^ "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%
:\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!