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: Error while uploading files using batch script

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
guptamrishabh

Re: Error while uploading files using batch script

martin wrote:




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
guptamrishabh

Error while uploading files using batch script

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