Re: ftp usage in batch command?

From: Mark V (notvalid_at_nul.invalid)
Date: 09/23/04

  • Next message: Mira: "Re: ftp usage in batch command?"
    Date: Thu, 23 Sep 2004 12:30:08 -0700
    
    

    In microsoft.public.win2000.cmdprompt.admin Paul R. Sadowski wrote:

    > "Mira" <anonymous@discussions.microsoft.com> wrote in message
    > news:491901c4a17e$e1e92240$a501280a@phx.gbl...
    >> Hello,
    >>
    >> How to do file transfer from SERVER-A to SERVER-B using a
    >> ftp command? This I need to put into a scheduled batch
    >> process. Also, what are the advantages of ftp transfer
    >> over conventional copy such as "copy D:\*.txt M:\dir1
    >> \dir2\*.txt" (Where M is network mapped drive).
    >
    > If you are talking about the proxy command then Microsoft ftp
    > servers don't support that.
    >
    > If you are talking about running a btach ftp from say serverA to
    > another then you do it this way:
    > ftp serverB -s:script.txt
    > Where script .txt contains the list of commands for the ftp client
    > to follow. For example:
    > myusername
    > mypass
    > lcd C:\somedir
    > cd /pub/users/somedir
    > bin
    > prompt
    > mput *.jpg
    > close
    > quit
    >
    > I don't think there is an advantage of ftp vs. shares, except when
    > shares are not allowed.

    There might be dis-advantages (or at least more work) to running a
    FTP server...


  • Next message: Mira: "Re: ftp usage in batch command?"

    Relevant Pages

    • Re: ftp on IIS 6.0 w2k3
      ... Try a batch file that writes a simple message out to a log file, ... to allow null session shares so that it can. ... Software Design Engineer, Internet Information Server (FTP) ... > command runs from a dos shell. ...
      (microsoft.public.inetserver.iis)
    • Re: FTP PUT with Store Unique
      ... years ago but had totally forgotten - I appreciated that the STOU command is ... covers the point I want to make which is that the FTP client commands are ... An SUNIQUE command compatible ...
      (bit.listserv.ibm-main)
    • Re: FTP PUT with Store Unique
      ... The best list for topics related to the Communications Server IP ... command or vice versa. ... Instructs the FTP client not to include a name with the STOU ... -- If NONAME is in effect, no name string specifying a foreign_file value follows ...
      (bit.listserv.ibm-main)
    • Re: FTP PUT with Store Unique
      ... a date/time stamp into the name before the FTP step. ... I foolishly assumed when I saw the SUnique parameter that - of course! ... command or vice versa. ... -- If NAME is in effect, the name string specifying a foreign_file value ...
      (bit.listserv.ibm-main)
    • Re: users of pycurl here?
      ... > send a QUOTE SIZE command to the ftp server or is there an easier way? ... SIZE isn't a standard FTP command, so that only works for some servers. ... here's a robust parser for various LIST output formats: ...
      (comp.lang.python)