We help IT Professionals succeed at work.

min. number of FTP commands to get all files from a folder and all its subfolders

Medium Priority
1,478 Views
Last Modified: 2013-11-29
Hi Experts,

How to use min. number of FTP commands to get all files from a folder and all its subfolders?

Thanks
Comment
Watch Question

Commented:
whats are you using?
ftp computername
mget *

will copy all files to current directory

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks sparkymw!
Can I escape all confirmation questions for downloading each file?

Commented:
i dont think so.

if you used a ftp program you could do it

Commented:
Hi bessie,

mget -i *

Here is the full list of Windows FTP commands.  Might be better to put these commands into a file and use the -s switch...
http://www.nsftools.com/tips/MSFTP.htm#mget

mget -s:myFtpCommands.txt

Commented:
Before logging onto ftp server, pull up a shell or dos window and change directory to the folder where you want to download to:

cd c:\temp

Then log onto ftp server by doing:
  ftp 192.168.0.23 ...opening

Then provide criteria:
  user (192.168.0.23):  myusername
  Password: mypassword

Change directory to the files you want
  cd /ftpfolder

Then "get" filename
  get myfilename
      or
  get *

Then close
  close

Lastly quit
  quit


cheers
rc


you may want to include:

"lcd c:\downloads" (or whatever) to tell it where to put the files too.

Max.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.