Results 1 to 4 of 4

Thread: FTP get directory

  1. #1
    Join Date
    Jan 2009
    Posts
    55

    FTP get directory

    I want to download a set of directories via ftp from my Linux server situated at other location. Is there any simplest and effective way to achieve this? Well I suppose open each subdirectory and with the help of get function download the files. But I forgot the steps to achieve this. Also is there some other option other than this?

  2. #2
    Join Date
    Jan 2006
    Posts
    4,221

    Re: FTP get directory

    mget and mput functions are not meant for transferring entire set of directory. They can only sent one at a time. However you can achieve this if you can archive your files and then use mget function to retrieve the file from the server.

  3. #3
    Join Date
    Apr 2008
    Posts
    3,339

    Re: FTP get directory

    You need to use mget function which allows you to send multiple files at a time.

    Description

    mget [multiple files and/or wildcards] - Expand wild cards in the list of remote files given as arguments and do a get for each file in the resulting list. The list of files should be separated by spaces.

    Syntax
    Code:
    ftp> mget [filenames...]
    Example

    Code:
    ftp> mget bipasha.gif
    Code:
    ftp> mget salary.doc employeedetail.doc

  4. #4
    Join Date
    May 2008
    Posts
    3,516

    Re: FTP get directory

    mget can get all the files within a directory if everything is set up properly. mget will not need permissions and/or access to get control and download the files. Just keep this in mind that the FTP get and mget commands will only work in the current directory. If you want to get files of some other directory, you need to use some other command like "ls" alongwith "cd" and then "get" or "mget" to retrieve the files.

Similar Threads

  1. How to use ldp.exe in Active Directory
    By Aanand in forum Active Directory
    Replies: 3
    Last Post: 19-11-2010, 05:06 AM
  2. Replies: 5
    Last Post: 22-05-2010, 07:33 AM
  3. How to remove a directory in C#
    By MACE in forum Software Development
    Replies: 3
    Last Post: 13-11-2009, 05:18 PM
  4. Virtual directory in IIS 7
    By yogeshap in forum Software Development
    Replies: 4
    Last Post: 30-04-2009, 01:42 PM
  5. Protecting A Directory
    By Bhardwaj in forum Software Development
    Replies: 4
    Last Post: 14-03-2009, 12:15 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,342,333.16450 seconds with 16 queries