To run LIB without typing the full command line or responses to prompts, you can use a response file. You must first create a response file, which is a text file combining the command-line information; you can write and edit this file in the Quick Development Environment or another editor. Then invoke LIB using the following command:
LIB @responsefile
The responsefile is the name of the text file containing some or all of the input expected by LIB. You can specify a full path with the filename. Precede it with an at sign (@).
You can also enter the name of a response file at any position in a command line or after any of LIB's prompts. The input from the response file is treated exactly as if it had been entered in the command line or after prompts. When you run LIB with a response file, LIB displays prompts followed by the input from the response file. If the response file does not contain all expected input and does not end with a semicolon, LIB prompts for the remaining responses.
Each input field in the response file must appear on a separate line or be separated from other fields on the same line by a comma. A carriage return and linefeed combination is equivalent to pressing ENTER in response to a prompt or to entering a comma in a command line. Input must appear in the same order as in the command-line fields or at the LIB prompts.
The following response file tells LIB to add the object files CURSOR.OBJ and HEAP.OBJ as the last two modules in LIBFOR.LIB:
LIBFOR
+CURSOR +HEAP;