FTP Script quit working
Can you please help me with this? All of sudden this stopped working. I tried 2 different FTP server locations so I think it is with my script or WinSCP changed. I masked out IP addresses and user/passwords.
Thank you for your help.
Script:
Here is the error:
Thank you for your help.
Script:
@echo off echo option batch continue>> ftpcmd.dat echo option confirm off>>ftpcmd.dat echo open ftpes://user_goes_here:password_goes_here@servername/ -passive=off -certificate="d7:68:23:ee:cc:aa:aa:00:ee:0f:0c:2b:12:b8:dd:44:77:44:33:22">> ftpcmd.dat echo get -transfer=bin %1 .\>> ftpcmd.dat echo exit>>ftpcmd.dat winscp.com /log="F:\logs\get_ftp.log" /ini=nul /script=ftpcmd.dat del ftpcmd.dat
Here is the error:
. 2021-07-28 15:34:53.246 Using FTP protocol. . 2021-07-28 15:34:53.247 Doing startup conversation with host. < 2021-07-28 15:34:53.247 Script: Starting the session... > 2021-07-28 15:34:53.248 PWD < 2021-07-28 15:34:53.278 257 "/" is your current location . 2021-07-28 15:34:53.279 Getting current directory name. . 2021-07-28 15:34:53.280 Startup conversation with host finished. < 2021-07-28 15:34:53.280 Script: Session started. < 2021-07-28 15:34:53.281 Script: Active session: [1] user@server_here > 2021-07-28 15:34:53.281 Script: get -transfer=bin * .\ . 2021-07-28 15:34:53.282 Retrieving directory listing... > 2021-07-28 15:34:53.284 TYPE A < 2021-07-28 15:34:53.313 200 TYPE is now ASCII > 2021-07-28 15:34:53.315 PASV < 2021-07-28 15:34:53.347 227 Entering Passive Mode (99,99,99,99,202,246) > 2021-07-28 15:34:53.347 MLSD . 2021-07-28 15:34:53.347 Connecting to 99.99.99.99:51958 ... < 2021-07-28 15:34:53.409 150 Accepted data connection . 2021-07-28 15:34:53.444 Data connection closed . 2021-07-28 15:34:53.444 <Empty directory listing> . 2021-07-28 15:34:53.475 Disconnected from server . 2021-07-28 15:34:53.476 Could not retrieve directory listing . 2021-07-28 15:34:53.477 Connection was lost, asking what to do. . 2021-07-28 15:34:53.477 Asking user: . 2021-07-28 15:34:53.477 **Lost connection.** ("Disconnected from server","Could not retrieve directory listing") < 2021-07-28 15:34:53.478 Script: Lost connection. < 2021-07-28 15:34:53.478 Script: Disconnected from server < 2021-07-28 15:34:53.479 Could not retrieve directory listing