Re: Batch FTP fails at one location

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ron Lowe (ron-msng_at_{d.e.l.e.t.e.}lowe-family.me.uk)
Date: 12/17/04


Date: Fri, 17 Dec 2004 13:57:20 -0000


"Keith-Earl" <k@k.com> wrote in message
news:%23RiX6mD5EHA.1188@tk2msftngp13.phx.gbl...
>I have run the following FTP script without any problems for over a year at
>three or four different sites. When I visited a new client site the script
>dies on the mget *.*
>
> Why would mget fail? Can I use another FTP command to get all files in a
> folder?
>
> I invoke the script with this command in a batch file:
> ftp -s:myFTP.txt ftp.mySite.com
>
> myFTP file contents
> --------
> myAccount
> myPassword
> cd www\ezt\data
> lcd C:\Backup\
> binary
> mget *.*
>

Simplify the problem.

Forget scripting for the moment, and try manual FTP.
Can you 'ls' the site?

If not, it probably is indeed a firewall issue.
Try another FTP client, in passive mode.

The command-line FTP client that comes with XP does not support passive
mode.
Grab a copy of gFTP instead, which does:

ftp://ftp.gnu.org/old-gnu/emacs/windows/contrib/ftp-for-win32.zip

-- 
Best Regards,
Ron Lowe
MS-MVP Windows Networking


Relevant Pages

  • Re: FTP strangeness
    ... Listing an empty existing directory shouldn't return an error code. ... servers cannot issue a 550 reply to a LIST command. ... As demonstrated more than just VMS ftp servers do the latter - for situations ... In any case an FTP client should comply with the robustness principle of RFC ...
    (comp.os.vms)
  • Re: Scripted FTP transfer
    ... I'm attempting to script an FTP transfer on my UnixWare 7.1.4 server. ... I'm trying to write a FTP command file on the fly to redirect ...
    (comp.unix.sco.misc)
  • Scripted FTP transfer
    ... I'm attempting to script an FTP transfer on my UnixWare 7.1.4 server. ... I'm trying to write a FTP command file on the fly to redirect ...
    (comp.unix.sco.misc)
  • Re: .bat from asp.net w/System.Diagnostics.Process?
    ... The results of the script from the command prompt when run from an .aspx are ... The ftp call syntax that I am using allows you to have a text file with all of your ftp connection info in it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: FTP in ASP.NET C#
    ... It has native .NET classes that will allow you to use the FTP protocol. ... >I would like to have my application FTP a file to a server after a user ... > ' This script assumes the file to be FTP'ed is in the same directory as ... > ' If there are multiple files to put, we need to use the command ...
    (microsoft.public.dotnet.languages.csharp)