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

martin

Re: Error where download the file from ftp

I do not understand your two-part log file. Isn't the second part actually a part of the first part? Can you post a full log file? Though if WinSCP logged that it downloaded 1714 bytes, the file should not be empty.
borkhalenko

Error where download the file from ftp

Hello. I have a script do download files from ftp:
set mydate=%date:~0,2%_%date:~3,2%_%date:~6,4%

winscp.exe /script="C:\Program Files (x86)\winscp_download_checks\download_settings.txt" /log="D:\MhpAutomatiz\winscp\LOG\%mydate%.log"


download_settings.txt:
option batch abort

option confirm off
open ftp://LOGIN:password@site -timeout=10
get -preservetime -nopermissions -filemask="*.zip" -transfer=automatic *.zip D:\MHPAutomatiz\Download\
exit


Log (part 1):
. 2019-12-03 18:20:00.746 File: '/DOC_D11133_F10_P76_U303_2019-12-03_18-17-56.tcudoc.zip' [2019-12-03T16:18:04.000Z] [1714]

. 2019-12-03 18:20:00.746 Copying "/DOC_D11133_F10_P76_U303_2019-12-03_18-17-56.tcudoc.zip" to local directory started.
. 2019-12-03 18:20:00.746 Binary transfer mode selected.
. 2019-12-03 18:20:00.746 Starting download of /DOC_D11133_F10_P76_U303_2019-12-03_18-17-56.tcudoc.zip
> 2019-12-03 18:20:00.746 TYPE I
< 2019-12-03 18:20:00.746 200 Type set to I
> 2019-12-03 18:20:00.746 PASV
< 2019-12-03 18:20:00.746 227 Entering Passive Mode (176,111,58,234,214,254)
> 2019-12-03 18:20:00.746 RETR DOC_D11133_F10_P76_U303_2019-12-03_18-17-56.tcudoc.zip
. 2019-12-03 18:20:00.746 Connecting to 176.111.58.234:55038 ...
< 2019-12-03 18:20:00.746 200 TYPE is now ASCII
> 2019-12-03 18:20:00.746 PASV
< 2019-12-03 18:20:00.761 227 Entering Passive Mode (91,234,35,10,246,180)
> 2019-12-03 18:20:00.761 MLSD
. 2019-12-03 18:20:00.761 Connecting to 91.234.35.10:63156 ...
< 2019-12-03 18:20:00.777 150 Accepted data connection
. 2019-12-03 18:20:00.777 Data connection closed
< 2019-12-03 18:20:00.777 226-Options: -a -l
< 2019-12-03 18:20:00.777 226 4 matches total


Log (part 2):
< 2019-12-03 18:20:01.058 150 Opening data channel for file download from server of "/DOC_D11133_F10_P76_U303_2019-12-03_18-17-56.tcudoc.zip"

< 2019-12-03 18:20:01.058 226 Successfully transferred "/DOC_D11133_F10_P76_U303_2019-12-03_18-17-56.tcudoc.zip"
. 2019-12-03 18:20:01.058 Data connection closed
. 2019-12-03 18:20:01.058 Download successful
. 2019-12-03 18:20:01.058 Transfer done: '/DOC_D11133_F10_P76_U303_2019-12-03_18-17-56.tcudoc.zip' [1714]
. 2019-12-03 18:20:01.058 Deleting file "/DOC_D11133_F10_P76_U303_2019-12-03_18-17-56.tcudoc.zip".
> 2019-12-03 18:20:01.058 DELE /DOC_D11133_F10_P76_U303_2019-12-03_18-17-56.tcudoc.zip


And I have a file with 0 bytes on my PC. How can I find, where an error causes?
Thank you!