Topic "Copying files from remote side failed"

Author Message
[View user's profile]

Joined: 2017-01-25
Posts: 1
Location: Maryland

I am planning on automating some ftp file transfers via simple scripts. To get a feel for it I took a sample script and modified it as follow:

# Connect
open ftp://XXbackup:password@
# Change remote directory
cd \FTPTest
# Force binary mode transfer
# option transfer binary
# Download file to the local directory d:\
get background1.jpg s:\FTPBackup\TNSQL\FTPTest\
# Disconnect

The script is supposed to connect to the ftp server (Filezilla FTP server) and then transfer the file background1.jpg to a local folder. When I run the script it seems to connect OK and then it shows the following error:

Error transferring file '/FTPTest/background1.jpg'.
Copying files from remote side failed
Can't open data connection for transfer of "/FTPTest/background1.jpg"

I have attached a screen shot of it as well.

One thing to add its that it does create a file in the local folder called background1.jpg but it has 0 bytes,


1-24-2017 10-18-01 PM.jpg (72.71 KB)

Description: (none)

1-24-2017 10-18-01 PM.jpg

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
Can you download the file in WinSCP GUI or using any other FTP client?

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License