Batch file FTP help

travishendrix

Distinguished
Oct 24, 2009
1
0
18,510
0
I am writing a batch file that will download a file from an ftp site. I have written batch files before but am new to the FTP side of it. Here is what I have so far.
echo open ipaddress 950>>ftpbat.txt
echo anonymous>>ftpbat.txt
echo batscript@pccaresupport.com>>ftpbat.txt
echo binary>>ftpbat.txt
echo prompt n>>ftpbat.txt
echo mget file.msi>>ftpbat.txt
echo bye>>ftpbat.txt
ftp -s:ftpbat.txt
del ftpbat.txt

it connects to the ftp site correctly and logs in but when it tries to run the mget command I get an error "Invalid PORT Command." I have no idea what to do with this.
 

ksiemb

Distinguished
Nov 15, 2009
155
0
18,660
8



probably caused by your firewall setting. Both the firewall NAT and FTP service are redirecting Same Port ?? at the same time confusing the system.
Deleting the firewall NAT setting may cure the problem.
 

nxb3942

Distinguished
Dec 29, 2011
1
0
18,510
0
You might consider www.thruinc.com because it enables you to send and receive batches of any size just like a regular email without any code writing. Saves a lot of time.
 

ksiemb

Distinguished
Nov 15, 2009
155
0
18,660
8


Op didn't respond to my Sept post, so doubtful he will read yours also ! :lol:

We get these hit & runs all the time.
 
Thread starter Similar threads Forum Replies Date
David___Only Apps General Discussion 0
S Apps General Discussion 4
M Apps General Discussion 3
D Apps General Discussion 2
N Apps General Discussion 1
NoctisLionward Apps General Discussion 2
malavena Apps General Discussion 3
Tom Waller Apps General Discussion 2
P Apps General Discussion 1
S Apps General Discussion 4
A Apps General Discussion 13
Z Apps General Discussion 1
P Apps General Discussion 7
G Apps General Discussion 0
T Apps General Discussion 5
SHADOWSTRIKE1 Apps General Discussion 3
S Apps General Discussion 3
R Apps General Discussion 3
P Apps General Discussion 2
M Apps General Discussion 3

ASK THE COMMUNITY