Auto-restart Directory Listing

Advertisement

0nly
Joined:
Posts:
12
Location:
Illinois

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:

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

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.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum