Topic "Error while uploading files using batch script"

Author Message
guptamrishabh
[View user's profile]

Joined: 2012-06-28
Posts: 2
Location: India
Hi All,
I am new to WinSCP scripting. I have wrtten a script which is uploading the files using a temp scipt file with the following syntax:

put -delete *.txt

But during execution of the script always last file fails to transport to the remote SFTP server. The error logs are attached.

Please help me in avoiding such errors.

Thanks in advance.
---Rishabh
downloadlogs.txt (3.38 KB) [Download]

Description: This is actually an xml log file being created by WinSCP itself.

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please read documentation:
https://winscp.net/eng/docs/message_transfer_finished_could_not_rename
https://winscp.net/eng/docs/faq_script_ini
_________________
Martin Prikryl
guptamrishabh
[View user's profile]

Joined: 2012-06-28
Posts: 2
Location: India



Thanks Martin,
I have tried again with the suggestion u have made in the first link and got success in the same.

But my query then would be that if this be the problem it should be for all the files. whereas some of my files got successfully transferred as evident in the logs.

Could you please elaborate on that..

Thnaks
--Rishabh
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
guptamrishabh wrote:
But my query then would be that if this be the problem it should be for all the files. whereas some of my files got successfully transferred as evident in the logs.

The Transfer Resume/Transfer to Temporary Filename is by default enabled only for files over 100 KiB:
https://winscp.net/eng/docs/ui_pref_resume
_________________
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