Solved

FTP Script Commands

Posted on 2014-07-28
6
263 Views
Last Modified: 2014-08-22
What is the "GET" command to get more than one file out of the same folder using FTP?
0
Comment
Question by:akdreaming
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 13

Expert Comment

by:duncanb7
ID: 40225512
You want do it on window or linux ? Please write us more about your
system or setup

Duncan
0
 
LVL 8

Expert Comment

by:5teveo
ID: 40225826
Try this pattern

To get several files from a remote host:
   ftp> mget *.ps


This transfers a copy of each file with the fileneme extension .ps in the current directory on the remote host to the current directory on the local host.

Do you need complete script?
0
 

Author Comment

by:akdreaming
ID: 40239999
I'm unclear on what the *.ps is for.  Are you saying if my filename extension is .doc, then I could simply type "mget *.doc" ?

On a daily basis, our users will go out to this site, connect and need to bring down a couple files.  There is typically never more than a couple files in there.  This is on Windows.  Our issue is that the files are named by date each day and we don't want to have to change the script each day just so we can grab the file by filename.  I just want to grab all of them.
0
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 

Author Comment

by:akdreaming
ID: 40240043
I'm told there are about 8-10 files out there, with varied file extensions.  So what I want is the command that pulls down every single file in the folder, regardless of file name extension.
0
 
LVL 8

Accepted Solution

by:
5teveo earned 355 total points
ID: 40265071
Use

ftp> mget *.*

mget is command to pull multiple files in FTP script

Does that make sense?
0
 

Author Closing Comment

by:akdreaming
ID: 40279803
Thanks.  Worked for our needs.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Suggested Courses
Course of the Month6 days, 15 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question