Posted: 2017-01-25 04:38
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:
# Change remote directory
# Force binary mode transfer
# option transfer binary
# Download file to the local directory d:\
get background1.jpg s:\FTPBackup\TNSQL\FTPTest\
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,
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
And it's free!