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: Copying files from remote side failed

Can you download the file in WinSCP GUI or using any other FTP client?
nagate816

Copying files from remote side failed

Hello,

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@192.99.27.49
# 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
close

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,

Thanks,

N.