Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch FTP on Server 2003 - larger file

Status
Not open for further replies.

micang

Technical User
Aug 9, 2006
626
US
Windows 2003

Hi All,

I am using a simple batch to download a file from a ftp server like so:

ftp -s:ftp_text.txt ftp_path

and contents of the ftp_text file:

username
password
prompt off
get filename.txt
quit

The weird problem I have is that this works fine on smaller sized files (I have tested up to 45 megs) but as soon as I try download a 190 meg file, it all "works", but the file never comes across, what I mean is that it logs into the ftp, finds the file, says it's transferring it, but it never does. I have checked on the actual ftp server it's coming from and the ftp server shows it's sending the file, it shows it's complete, but the file is not on my server 2003 server. The command prompt just remains open permantantly.


I have tried downloading the same file from the same ftp server by this method on a pc running WinXP, and it does it no problem.

I am really baffled and any info will be appreciated.

Michael


 
Try checking your FTP file config for a timeout parameter and increase it. Also it could be possible your network admins have setup some sort of throttling that limits you to how much you can download at certain times.
 
Thanks itsp1965, will look into that.

Michael
 
I've had the same problem, but never found a solution.

I started using wget instead. (
In my experience wget is much more flexible when downloading multiple files or even directory trees from ftp. Downside of wget is that you can only use it to download files from ftp/http, you cannot use it to upload anything.
 
Hi jbarelds,

Thanks for the link, will def. investigate and give that util a try.

After some googling it seems that the get comamnd and Server 2003 have had some issues that aparrently got fixed in SP1/2.

I already had SP2 installed, but I re-installed it, and now the file transfer works as expected. So don't know why, but I can only imagine that maybe the SP2 re-installation did in fact do something, otherwise it's just one of those computer mysteries.

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top