FTP Script through firewall
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
Windows Forum
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
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.
by rigneyma
This discussion is closed to new replies.
Sort by Trending