|
 |
|
 |
| |
 |
Group Files |
|
|
| |
With FTP, how can I transfer a group of
files without typing out all their names?
The FTP commands get
and put only transfer single files, but there are similar
commands for transferring multiple files, mget and mput.
Transferring files from your computer to another
If you want to transfer files to another computer, open an FTP
connection to that computer. To move files named myfile, mynotes,
and mystuff from the current directory of your computer, you
could enter at the FTP prompt: mput my*
The asterisk is a wildcard that tells FTP to match all files
starting with my . You can also use a question mark character (
? ) to match a single letter. You can also interrupt the series
of transfers by pressing: Ctrl C, and FTP will ask you whether
you want to continue.
After entering the mput command, you'll be prompted whether you
want to transfer each file. Press y for yes or n for no. To turn
this feature off, enter the following command at the FTP prompt
before you begin transferring: prompt
Transferring files from a different computer to yours
Open an FTP connection to another computer. To retrieve files
named myfile1, myfile2, and myfile3 from that computer, you
would enter at the FTP prompt: mget myfile?
As with the mput command, you'll be asked whether you want to
transfer each file, unless prompting has been turned off.
Note: If the files you're transferring are anything other than
plain ASCII text files, you should specify a binary transfer
before sending or receiving. At the FTP prompt, enter:
|
|
| |
|
|
|