Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

FTP Script Commands

What is the "GET" command to get more than one file out of the same folder using FTP?
0
akdreaming
Asked:
akdreaming
  • 3
  • 2
1 Solution
 
duncanb7Commented:
You want do it on window or linux ? Please write us more about your
system or setup

Duncan
0
 
5teveoCommented:
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
 
akdreamingAuthor Commented:
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
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

 
akdreamingAuthor Commented:
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
 
5teveoCommented:
Use

ftp> mget *.*

mget is command to pull multiple files in FTP script

Does that make sense?
0
 
akdreamingAuthor Commented:
Thanks.  Worked for our needs.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now