MGET (Copy Multiple Files from a Remote System to the Local System)

 

The MGET i5/OS® FTP client subcommand copies multiple files from the remote system.

 

FTP client subcommand

How MGET transfers files:

When you enter the MGET subcommand, a separate GET subcommand is run for each remote file that you want to transfer. The FTP server creates the name of the corresponding local file automatically as determined by the default naming rules.

The MGET FTP client subcommand uses the following process to determine where to put files.

MGet {remotefile
[remotefile...]}[(Replace]

remotefile

The file or files you want to retrieve from the remote system.

( Replace

Overwrites an existing file on your local system. If the file already exists on your local system and you do not use the Replace option, the existing file is not overwritten. The name of the local file where the remotefile is copied is created automatically.

You can use an asterisk (*) to copy all members in a file to your current library or directory. For example, if the remote system is a System i™ product, the following examples apply:

Related reference
GET (Copy a File from a Remote System to the Local System) File Transfer Protocol client syntax conventions MPUT (Send Multiple File Members from the Local System to a Remote System) PUT (Copy a File Member from the Local System to a File on a Remote System) File names for client-transfer subcommands Naming files for transfer