Topic "Auto-restart Directory Listing"

Author Message
0nly
[View user's profile]

Joined: 2007-09-30
Posts: 12
Location: Illinois
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! Mr. Green Mr. Green Mr. Green
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License