martin wrote:
What version of WinSCP are you using?
Please post a full log file using original option batch on
.
I hope this code is what you were looking for. I cannot send the whole log as it is not anonyimised. Is this the right info?
. 2020-03-18 00:00:04.020 --------------------------------------------------------------------------
. 2020-03-18 00:00:04.020 WinSCP Version 5.15.9 (Build 10071) (OS 10.0.14393 - Windows Server 2016 Datacenter)
. 2020-03-18 00:00:04.020 Configuration: nul
. 2020-03-18 00:00:04.020 Log level: Normal
. 2020-03-18 00:00:04.020 Local account: xxx
. 2020-03-18 00:00:04.020 Working directory: C:\Windows\system32
. 2020-03-18 00:00:04.020 Process ID: 8288
. 2020-03-18 00:00:04.020 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /ini=nul /log="C:\jobs\log\prod-xxx-2020-03.log" /script="C:\jobs\sql\xxx.txt"
. 2020-03-18 00:00:04.020 Time zone: Current: GMT+1, Standard: GMT+1 (W. Europe Standard Time), DST: GMT+2 (W. Europe Daylight Time), DST Start: 3/29/2020, DST End: 10/25/2020
. 2020-03-18 00:00:04.020 Login time: Wednesday, March 18, 2020 12:00:04 AM
. 2020-03-18 00:00:04.020 --------------------------------------------------------------------------
. 2020-03-18 00:00:04.020 Script: Retrospectively logging previous script records:
> 2020-03-18 00:00:04.020 Script: open ftp://xxx/
. 2020-03-18 00:00:04.020 --------------------------------------------------------------------------
. 2020-03-18 00:00:04.020 Session name: xxx@xxx (Ad-Hoc site)
. 2020-03-18 00:00:04.020 Host name: xxx (Port: xxx)
. 2020-03-18 00:00:04.020 User name: xxx(Password: Yes, Key file: No, Passphrase: No)
. 2020-03-18 00:00:04.020 Transfer Protocol: FTP
. 2020-03-18 00:00:04.020 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2020-03-18 00:00:04.020 Disable Nagle: No
. 2020-03-18 00:00:04.020 Proxy: None
. 2020-03-18 00:00:04.020 Send buffer: 262144
. 2020-03-18 00:00:04.020 UTF: Auto
. 2020-03-18 00:00:04.020 FTPS: None [Client certificate: No]
. 2020-03-18 00:00:04.020 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2020-03-18 00:00:04.020 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2020-03-18 00:00:04.020 Cache directory changes: Yes, Permanent: Yes
. 2020-03-18 00:00:04.020 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2020-03-18 00:00:04.020 Timezone offset: 0h 0m
. 2020-03-18 00:00:04.020 --------------------------------------------------------------------------
. 2020-03-18 00:00:04.020 Connecting to xxx:xxx ...
. 2020-03-18 00:00:04.035 Connected with xxx:xxx. Waiting for welcome message...
< 2020-03-18 00:00:04.035 220-FileZilla Server 0.9.60 beta
< 2020-03-18 00:00:04.035 220-written by Tim Kosse (tim.kosse@filezilla-project.org)
< 2020-03-18 00:00:04.035 220 Please visit https://filezilla-project.org/
> 2020-03-18 00:00:04.035 USER xxx
< 2020-03-18 00:00:04.051 331 Password required for xxx
> 2020-03-18 00:00:04.051 PASS *********
< 2020-03-18 00:00:04.067 230 Logged on
> 2020-03-18 00:00:04.067 SYST
< 2020-03-18 00:00:04.082 215 UNIX emulated by FileZilla
> 2020-03-18 00:00:04.082 FEAT
< 2020-03-18 00:00:04.098 211-Features:
< 2020-03-18 00:00:04.098 MDTM
< 2020-03-18 00:00:04.098 REST STREAM
< 2020-03-18 00:00:04.098 SIZE
< 2020-03-18 00:00:04.098 MLST type*;size*;modify*;
< 2020-03-18 00:00:04.098 MLSD
< 2020-03-18 00:00:04.098 UTF8
< 2020-03-18 00:00:04.098 CLNT
< 2020-03-18 00:00:04.098 MFMT
< 2020-03-18 00:00:04.098 EPSV
< 2020-03-18 00:00:04.098 EPRT
< 2020-03-18 00:00:04.098 211 End
> 2020-03-18 00:00:04.098 CLNT WinSCP-release-5.15.9
< 2020-03-18 00:00:04.113 200 Don't care
> 2020-03-18 00:00:04.113 OPTS UTF8 ON
< 2020-03-18 00:00:04.113 202 UTF8 mode is always enabled. No need to send this command.
. 2020-03-18 00:00:04.113 Connected
. 2020-03-18 00:00:04.113 --------------------------------------------------------------------------
. 2020-03-18 00:00:04.113 Using FTP protocol.
. 2020-03-18 00:00:04.113 Doing startup conversation with host.
> 2020-03-18 00:00:04.113 PWD
< 2020-03-18 00:00:04.129 257 "/" is current directory.
. 2020-03-18 00:00:04.129 Getting current directory name.
. 2020-03-18 00:00:04.129 Startup conversation with host finished.
< 2020-03-18 00:00:04.129 Script: Active session: [1] xxx@xxx
> 2020-03-18 00:00:04.129 Script: cd /
. 2020-03-18 00:00:04.129 Changing directory to "/".
> 2020-03-18 00:00:04.129 CWD /
< 2020-03-18 00:00:04.145 250 CWD successful. "/" is current directory.
. 2020-03-18 00:00:04.145 Getting current directory name.
> 2020-03-18 00:00:04.145 PWD
< 2020-03-18 00:00:04.160 257 "/" is current directory.
< 2020-03-18 00:00:04.160 Script: /
> 2020-03-18 00:00:04.160 Script: lcd "C:\xxx"
< 2020-03-18 00:00:04.160 Script: C:\xxx
> 2020-03-18 00:00:04.160 Script: option batch continue
< 2020-03-18 00:00:04.160 Script: batch continue
> 2020-03-18 00:00:04.160 Script: option confirm off
< 2020-03-18 00:00:04.160 Script: confirm off
> 2020-03-18 00:00:04.160 Script: option reconnecttime 5
< 2020-03-18 00:00:04.160 Script: reconnecttime 5
> 2020-03-18 00:00:04.160 Script: get yyy
. 2020-03-18 00:00:04.160 Listing file "yyy".
. 2020-03-18 00:00:04.160 Retrieving file information...
> 2020-03-18 00:00:04.160 MLST /yyy
< 2020-03-18 00:00:04.176 250-Listing /yyy
< 2020-03-18 00:00:04.176 type=dir;modify=20191016203833; /yyy
< 2020-03-18 00:00:04.176 250 End
. 2020-03-18 00:00:04.176 type=dir;modify=20191016203833; /yyy
. 2020-03-18 00:00:04.176 Retrieving file information successful
. 2020-03-18 00:00:04.176 yyy;D;0;2019-10-16T20:38:33.000Z;3;"" [0];"" [0];---------;0
. 2020-03-18 00:00:04.176 Copying 1 files/directories to local directory "C:\xxx"
. 2020-03-18 00:00:04.176 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2020-03-18 00:00:04.176 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2020-03-18 00:00:04.176 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2020-03-18 00:00:04.176 File: '/yyy' [2019-10-16T20:38:33.000Z] [0]
. 2020-03-18 00:00:04.176 Retrieving directory listing...
> 2020-03-18 00:00:04.176 CWD /yyy
< 2020-03-18 00:00:04.176 250 CWD successful. "/yyy" is current directory.
> 2020-03-18 00:00:04.176 PWD
< 2020-03-18 00:00:04.192 257 "/yyy" is current directory.
> 2020-03-18 00:00:04.192 TYPE A
< 2020-03-18 00:00:04.207 200 Type set to A
> 2020-03-18 00:00:04.207 PASV
< 2020-03-18 00:00:04.223 227 Entering Passive Mode (31,160,49,17,238,117)
> 2020-03-18 00:00:04.223 MLSD
. 2020-03-18 00:00:04.223 Connecting to xxx ...
< 2020-03-18 00:00:04.254 150 Opening data channel for directory listing of "/yyy"
. 2020-03-18 00:00:04.254 Data connection closed
< 2020-03-18 00:00:04.254 226 Successfully transferred "/yyy"
. 2020-03-18 00:00:04.254 type=file;modify=20200227161452;size=12180881; zzz.dbf
(...)
. 2020-03-18 00:00:04.254 Directory listing successful
. 2020-03-18 00:00:04.254 ..;D;0;1899-12-30T01:00:00.000Z;0;"" [0];"" [0];---------;0
. 2020-03-18 00:00:04.254 zzz.dbf;-;12180881;2020-02-27T16:14:52.000Z;3;"" [0];"" [0];---------;0
(...)
. 2020-03-18 00:00:04.254 File: '/yyy/zzz.dbf' [2020-02-27T16:14:52.000Z] [12180881]
. 2020-03-18 00:00:04.254 Copying "/yyy/zzz.dbf" to local directory started.
. 2020-03-18 00:00:04.254 Binary transfer mode selected.
. 2020-03-18 00:00:04.254 Starting download of /yyy/zzz.dbf
> 2020-03-18 00:00:04.254 TYPE I
< 2020-03-18 00:00:04.254 200 Type set to I
> 2020-03-18 00:00:04.254 PASV
< 2020-03-18 00:00:04.270 227 Entering Passive Mode (31,160,49,17,248,92)
> 2020-03-18 00:00:04.270 RETR zzz.dbf
. 2020-03-18 00:00:04.270 Connecting to xxx ...
< 2020-03-18 00:00:04.301 150 Opening data channel for file download from server of "/yyy/zzz.dbf"
. 2020-03-18 00:00:05.009 Data connection closed
< 2020-03-18 00:00:05.009 226 Successfully transferred "/yyy/zzz.dbf"
. 2020-03-18 00:00:05.009 Preserving timestamp [2020-02-27T16:14:52.000Z]
. 2020-03-18 00:00:05.009 Download successful
. 2020-03-18 00:00:05.009 Transfer done: '/yyy/zzz.dbf' => 'C:\xxx\yyy\zzz.dbf' [12180881]
. 2020-03-18 00:00:05.009 File: '/yyy/zzz.FPT' [2020-02-27T16:14:56.000Z] [848256]
. 2020-03-18 00:00:05.009 Copying "/yyy/zzz.FPT" to local directory started.
. 2020-03-18 00:00:05.009 Binary transfer mode selected.