Topic "Error transferring file"

Author Message
Arnau Rius

Guest


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:
Code:

open ftp://user:password@server
cd MyDir
option transfer binary
option confirm off
put z:\MyFile.bak
close
exit


And the result is:
Code:

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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
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

Guest


prikryl 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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
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

Guest


prikryl 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.
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