Copying files from remote side failed

Advertisement

nagate816
Joined:
Posts:
1
Location:
Maryland

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.

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

Reply with quote E-mail

martin
Site Admin
martin avatar
Joined:
Posts:
27,426
Location:
Prague, Czechia

Re: Copying files from remote side failed

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

Reply with quote

Advertisement

You can post new topics in this forum