Synchronizing - Lost connection during folder comparing
I am trying a simple synch operation with this script:
Everything works as it should, but if there are a lost connection when WinSCP is comparing the folders the script fails:
Any idea on how to get around this?
option batch on open johan@jdllas.cjb.net synchronize remote -criteria=none "E:\Shared\Mina bilder" "./Mina bilder"
batch on Connecting to jdllas.cjb.net ... Connected with jdllas.cjb.net. Waiting for welcome message... Connected Starting the session... Reading remote directory... Session started. Active session: [1] johan@jdllas.cjb.net Comparing... Local 'E:\Shared\Mina bilder\1994 Gamla Bilder' => Remote './Mina bilder/1994 Ga Local 'E:\Shared\Mina bilder\2003-08' => Remote './Mina bilder/2003-08' Local 'E:\Shared\Mina bilder\2004 Webbackgrounds' => Remote './Mina bilder/2004 Local 'E:\Shared\Mina bilder\2004-01' => Remote './Mina bilder/2004-01' Local 'E:\Shared\Mina bilder\2004-07 Grekland' => Remote './Mina bilder/2004-07 Local 'E:\Shared\Mina bilder\2004-07 Åland' => Remote './Mina bilder/2004-07 Åla Local 'E:\Shared\Mina bilder\2004-08' => Remote './Mina bilder/2004-08' Local 'E:\Shared\Mina bilder\2005-07 Bröllop' => Remote './Mina bilder/2005-07 B Local 'E:\Shared\Mina bilder\2005-07 Bröllop\Bilder Danne' => Remote './Mina bil Local 'E:\Shared\Mina bilder\2005-07 Bröllop\Bilder Thomas' => Remote './Mina bi Local 'E:\Shared\Mina bilder\2005-07 Bröllop\Bröllop Farsan' => Remote './Mina b Local 'E:\Shared\Mina bilder\2005-07 Bröllop\Bröllop Jojo' => Remote './Mina bil Local 'E:\Shared\Mina bilder\2005-07 Bröllop\Bröllop Staffan' => Remote './Mina bilder/2005-07 Bröllop/Bröllop Staffan' Lost connection. Timeout detected. Could not retrieve directory listing Transfer OK Error listing directory './Mina bilder/2005-07 Bröllop/Bröllop Staffan'. No session. winscp>