Windows FTP mget and ls commands don't work

346 Views Asked by At

I have a simple FTP script to download files from a directory, but when I run it, it just goes out to lunch and never comes back.

ftp> ftp -n -s:"download.txt" ftp.mysite.com

download.txt:

user ******* ********
ascii
cd /remoteFiles
prompt off
mget *
quit

Even if I try to do a simple ls command, it won't list files:

user ******* ********
cd /remoteFiles
ls
quit

result:

---> PORT 192,168,1,85,239,192
200 Command okay.
---> NLST
150 Opening ASCII mode data connection for file list.
Aborting any active data connections...
425 Can't open data connection.

What am I missing here?

0

There are 0 best solutions below