Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Auto-restart Directory Listing

0nly wrote:

I am requesting that the application be able to restart on the line that failed, not restart the entire script.

OK, that might be an easier solution than generic reconnect feature. I'll consider that.
0nly

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: