Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Apr 2003
    Location
    Canada, Ontario, Mississauga
    Posts
    312
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ftp mget command

    Hello, how come I cannot copy the directory by using the mget for ftp?
    ------------------------------------------------
    ftp> mget -i *
    200 Type set to A.
    mget sub_test? y
    200 PORT command successful.
    550 sub_test: The system cannot find the file specified.
    ------------------------------------------------

    sub_test is a directory.

    Anyone know how to copy everything within a directory by using ftp command?

  • #2
    Regular Coder
    Join Date
    Oct 2004
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't believe there is a command to copy a directory with all it's contents. You'll have to make local directories and copy each file over untill you have them all. You can run ftp with a batch file to make it easier.

  • #3
    Regular Coder
    Join Date
    Apr 2003
    Location
    Canada, Ontario, Mississauga
    Posts
    312
    Thanks
    0
    Thanked 0 Times in 0 Posts

    aman

    I am not freaking out at you, aman... but I just don't understand, why do people answer a thread when they don't have the answer. aman, what ever you told me is not what I am asking for.

    PEOPLE! why did you answer? you don't have the answer...

  • #4
    Regular Coder
    Join Date
    Oct 2004
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What? I answered your question. Perhaps you don't understand what I said.

    mgets does not copy directories, only files. But you knew that from reading the documentation, right? I gave you a solution because you are expecting something to do what it wasn't programmed to do.

  • #5
    Regular Coder
    Join Date
    Apr 2003
    Location
    Canada, Ontario, Mississauga
    Posts
    312
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My bad, I apologize aman, I was in a bad mood, sorry.


  •  

    Posting Permissions

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