Results 1 to 2 of 2

Thread: Automating FTP

  1. #1
    Join Date
    Aug 2008
    Posts
    78

    Unanswered: Automating FTP

    I've tried to keep the solution to this dilema simple, but i have a convoluted solution and I don't like it.

    I just want to copy a file using FTP.

    Source: ftp.mydomain.com/datafiles/data.txt
    user:anon
    pass:anon

    Destination: c:\temp\data.txt


    Can this be done with very little coding? Can someone show an example (using the above parameters) of doing this with a reasonably small amount of code?

    Please, no questions 'What's reasonable' ? lol. I don't know, less than 50 lines of code? I'd be happy w/10 lines? If it's 100 lines, I guess it's 100 lines.

  2. #2
    Join Date
    May 2005
    Location
    Nevada, USA
    Posts
    2,888
    Provided Answers: 6
    There's this:

    Modules: Internet Data Transfer Library

    but it can also be done in a batch file fairly easily. Here's one of mine:

    ftp -s:ftp.txt

    the contents of that txt file look like:

    open xxx.xx.xx.xx
    loginname
    password
    binary
    get filename.xyz
    quit
    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •