Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

Arnau Rius

Re: Error transferring file

martin wrote:

Please attach a full log file showing the problem (using the latest version of WinSCP).

Separately for UNC and mapped drive.

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.


Hi,

Thanks for your answer, but, finally, I'm doing it with Beyond Compare. It has nothing to compare, but it's working.
martin

Re: Error transferring file

Please attach a full log file showing the problem (using the latest version of WinSCP).

Separately for UNC and mapped drive.

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Arnau Rius

Re: Error transferring file

martin wrote:

The Windows Scheduler session probably does not see the Z:\ mapping.

While the GUI does not support browsing UNC paths, you can use them in scripting.


Well, my tests were made not scheduled, just executing the bat file in a cmd window. Once I get this done, I'll try to schedule with Windows Scheduler.

And I've tried with the UNC path and with the shared folder mapped. None of them worked.

I've been able to upload the file with the GUI, but not with the bat file.
martin

Re: Error transferring file

The Windows Scheduler session probably does not see the Z:\ mapping.

While the GUI does not support browsing UNC paths, you can use them in scripting.
Arnau Rius

Error transferring file

Hello,

I'm using WinSCP for the first time, because I want to schedule some uploads at night.
The WinSCP used is 5.7.6 (build 5874) running on a Windows Server 2008 R2 (x64).
I've made a bat file to upload those files, but it shows the error: "There's been an error uploading the file 'MyFile'. Abort, Retry, Fail, Fail All: Abort." (I'm translating this from Catalan, I don't know if it's right).

The script I'm using:
open ftp://user:password@server

cd MyDir
option transfer binary
option confirm off
put z:\MyFile.bak
close
exit


And the result is:
Connectant a server ...

Connectat
/MyDir
transfer        binary
confirm         off
z:\MyFile.bak   |            0 B |    0,0 KB/s | binary |   0%
Hi ha un error transferint el fitxer 'z:\A3Common_Calculo.bak'.
A(v)orta, (T)orna-ho a provar, (O)met, O(m)et tot: Avorta


Z: is a network folder. My first try was write the full UNC path, but the GUI refuses to set local folder an UNC path. So, I've tried mapping the shared folder.
The file exists in the remote folder, so I've added the "option confirm off" line in the script. It didn't work either way. I've tried with a file that doesn't exists, but it shows the same error.

What else can it be?

Thanks,
Arnau.