|
The -s parameter... C:\>ftp -s:blah Error opening script file blah. Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used interactively. FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host] -v Suppresses display of remote server responses. -n Suppresses auto-login upon initial connection. -i Turns off interactive prompting during multiple file transfers. -d Enables debugging. -g Disables filename globbing (see GLOB command). -s:filename Specifies a text file containing FTP commands; the commands will automatically run after FTP starts. -a Use any local interface when binding data connection. -A login as anonymous. -w:buffersize Overrides the default transfer buffer size of 4096. host Specifies the host name or IP address of the remote host to connect to. Notes: - mget and mput commands take y/n/q for yes/no/quit. - Use Control-C to abort commands. On 6/12/06, Guy Henza <guyhenza@xxxxxxxxxxx> wrote:
That worked well, thanks. My dos is a little rusty though, how do I get the ftp command to accept commands after it's launched? Regards, Guy Henza 616 N Michigan Ave Howell MI 48843 517.548.3563 guyhenza@xxxxxxxxxxx > >------------------------------ > >date: Mon, 12 Jun 2006 15:34:57 -0500 >from: "Lapeyre, Francis" <FLAPEYRE@xxxxxxxx> >subject: RE: FTP from AS/400 to PC > >Not directly, but you can write a script on the PC and have the AS/400 >execute it for you. > > >PGM >DCL VAR(&CALL) TYPE(*CHAR) LEN(123) VALUE(' ') >DCL VAR(&PATH) TYPE(*CHAR) LEN(80) VALUE('c:\transfer.bat') > >STRPCO PCTA(*NO) >MONMSG MSGID(IWS4010) >CHGVAR VAR(&CALL) VALUE('start' *BCAT &PATH) >STRPCCMD PCCMD(&CALL) PAUSE(*NO) >MONMSG MSGID(CPF0000) >ENDPGM > >You can run any PC program you want from an AS/400 session that way. > >Francis Lapeyre >IS Dept. Programmer/Analyst >Stewart Enterprises, Inc. >E-mail: flapeyre@xxxxxxxx > -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
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.