Automating AFTP Commands Through a Script FileLast reviewed: July 25, 1996Article ID: Q152013 |
The information in this article applies to:
SUMMARYMicrosoft SNA Server 2.11 includes support for the APPC File Transfer Protocol (AFTP), which implements FTP-like commands over an LU6.2 session, as defined by IBM. The SNA Server 2.11 readme file includes information on how to automate the use of AFTP commands by passing an inputfile (attached below). However, if an AFTP command is invoked from a batch (BAT or CMD) file and the command fails, no ERRORLEVEL value is returned, so batch file error recovery is not possible.
MORE INFORMATIONThe following information is included in the SNA Server 2.11 readme file, which describes how to automate the use of AFTP.
D.13. Automating AFTP client sessions You can supply a script file to the AFTP client that contains commands for the AFTP client to carry out. The syntax of the AFTP command when used in this manner is:
aftp -f inputfilewhere inputfile is the name of the script file. When the AFTP client is invoked using the -f command-line parameter, it executes each line in the specified script as a command and then terminates when it reaches the end of the file. For example, a file named Input.txt contains the following lines:
open aftprrr steved pword ascii get file1.txt closeThe command aftp -f input.txt would do the following:
|
KBCategory: kbnetwork
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |