FTP Hangs on Get

sukotto100
sukotto100 used Ask the Experts™
on
I had several batch scripts that were working fine on a Win2003 server. I just moved them to Win2008, and they are hanging. Here is one:
 
Here is the .bat:

@echo off
if exist test.log del test.log > NUL
if exist file.zip del price.zip > NUL
if exist file.txt del price.txt > NUL
CD C:\
echo Starting download...
ftp -s:C:\ftpsrc.txt > NUL
echo Files downloaded successfully
goto EXIT
:ERROR
echo Errors downloading file
goto EXIT
:EXIT


Here is the ftpsrc.txt:
open ftpsecure.source.com
user
pass
binary
cd /here/us/folder
get file.zip <--Hangs here. (200:Port command successful; 150 Opening BINARY mode for file.zip( 880000 bytes)
bye

It would make sense that this is something related to the new server, but I can't figure it out. It tried running as admin and manually entering the script to no avail
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Syed Mutahir Alibinarybonsai

Commented:
On your windows 2008, go into control panel, windows firewall

add program > ftp.exe
add port 21

Apply or OK

it should work then - just had something like this, this morning.

Hope this helps
binarybonsai
Commented:
Scrshot attached

Hope this helps
Windows-Firewall.png

Commented:
Yes, sounds like a passive/active firewall issue.  mutahir's fix should work.

Author

Commented:
That worked, my friend! thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial