|
>From the Help files on the AS/400: (I found this help by typing FTP on a >command line and answering 'LOOPBACK' to the remote site name, then logging in >and typing "help" on the ftp session screen. Help MPUT Subcommand - Help MPUT (Send Multiple Files) To send one or more local files (members, save files, or documents for example) and create a corresponding number of remote files with the same name, use the MPUT subcommand in the following format: MPut { localfile [localfile...]} MPut You can abbreviate subcommands to the most unique series of characters. localfile Specify one or more AS/400 file members, documents, or other local AS/400 files to be transferred to the remote system. The name given to the file on the remote system is generated automatically by the client. See the topic "Default names" for additional information. You can use an asterisk to send all the members in a file or all the documents in a folder. For example, MPUT MYLIB/MYFILE.* transfers all the members of file MYFILE in library MYLIB. Note: If the remote file already exists, the contents are replaced by the contents of localfile unless SUNIQUE is on. The following is an example of the NAMEFMT 0 using the MPUT subcommand: MPUT MYLIB/FILE1.MBR1 MYLIB/FILE1.MBR2 This sends members MBR1 and MBR2 of file FILE1 in library MYLIB to the remote system. The following is an example of the NAMEFMT 1 using the MPUT subcommand: MPUT /QDLS/QIWSOS2/PCSMENU.EXE /QDLS/QIWSOS2/PCSMENU2.EXE This sends document PCSMENU.EXE and document PCSMENU2.EXE from folder QIWSOS2 to the remote system. For related information, see the following: o FTP file naming o Using FTP In <362DF423.310482C7@arkansas.net>, on 10/21/98 at 09:48 AM, Terry Grider <tgrider@arkansas.net> said: >Where can you find documentation for the FTP.EXE program. I'm trying to >figure out how to send multiple files using generic names to the AS400 >out of a batch file. Searching the net has turned up very little and the >help built in to the program is a little skimpy for me. >Thanks >Terry Grider -- ----------------------------------------------------------- boothm@ibm.net Booth Martin ----------------------------------------------------------- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.