Auto-restart Directory Listing
During synchronization, WinSCP has to list the contents of the directories in order to make a comparison. If during the listing of a directory, network connection is lost, the whole job is aborted. I would like to request an auto-restart directory listing on error option so if network connection is lost during the listing of a large directory, the listing process will be restarted.
The temp work around is to add error handling to the batch file that calls WinSCP. For example:
:start
call winscp.com /console /script=syncscript.txt SESSION
if not %errorlevel%==0 goto :error
:error
goto :start
This will work, however, it starts the whole sync job over. If you have 6 lines in your script, it will have to resync those lines also. I am requesting that the application be able to restart on the line that failed, not restart the entire script.
THANK YOU! :mrgreen: :mrgreen: :mrgreen:
The temp work around is to add error handling to the batch file that calls WinSCP. For example:
:start
call winscp.com /console /script=syncscript.txt SESSION
if not %errorlevel%==0 goto :error
:error
goto :start
This will work, however, it starts the whole sync job over. If you have 6 lines in your script, it will have to resync those lines also. I am requesting that the application be able to restart on the line that failed, not restart the entire script.
THANK YOU! :mrgreen: :mrgreen: :mrgreen: