Discussion Locked

FTP Script through firewall

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Can anyone recommend an FTP program that can execute a script to go through our firewall and then connect to the ftp site? Ipswitch WS FTP Pro doesn't support this. It would run on an NT box.
Thank you

3 replies

by some guy in seattle

You can write a text file with all the FTP commands within it, and then execute FTP with the -s flag. NT makes this easy.

For example, create an ftpscript.txt file with the following info:

open ftp.somesite.com
anonymous
anonymous@somplace.com
bin
cd publicdirectory
lcd c:\mystoragedirectory
mget *
quit

Then, from a command line, execute "ftp -s:ftpscript.txt" (no quotes).

That's all there is to it. For more ftp flags, type "ftp -?" (no quotes) at the command line.

And, since you mention a firewall, make sure that it allows ftp outbound.

Hope that helps -

by rigneyma

I also need some flow control that a scripting language offers. I was actually able to figure out a work around and still use the flow control statements in the scripting language.

Thank you for your response.

This discussion is closed to new replies.