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:
And the result is:
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.
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.