Solved

FTP Script Commands

Posted on 2014-07-28
6
259 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
  • 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

778 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