You can run LIB and specify all the input it needs from the command line. The LIB command line has the following form:
LIB oldlibrary[[options]][[commands]] [[,[[listfile]] [[,[[newlibrary]]]]]] [[;]]
Fields must appear in order but can be left blank (except for oldlibrary). A semicolon (;) after any field terminates the command; LIB assumes defaults for any remaining fields. The fields are described in “Specifying LIB Fields,” which begins on page 699.
To terminate the session at any time, press CTRL+C.
The following example instructs LIB to combine the object files FIRST.OBJ and SECOND.OBJ and to name the combined library THIRD.LIB:
LIB FIRST +SECOND, , THIRD
For a more detailed example of running LIB from the command line, see topic .