A model or subcircuit library in a file can be referenced with the .LIB statement. The file name can be any character string that is a legal file name for your computer system. The file extension is not defaulted to .LIB. If you specify a file name, you must include its extension.
.LIB <FILE NAME>
Examples:
.LIB .LIB LINEAR.LIB .LIB C:\LIB\BIPOLAR.LIB
Libraries may contain comments, .MODEL statements, subcircuit definitions (including the .ENDS statement), and .LIB statements. No other statements are allowed.
You may set up the DRSPICELIB environment variable to point to the search paths for DR. SPICE libraries. Then, when creating the DR. SPICE netlist, you can just specify the library you want to include-without the full search path.
Then, when DR. SPICE searches for the library and doesnt find it in the local directory, it automatically searches the paths indicated in the DRSPICELIB variable.
Example:
.LIB BJT.LIB
Setting Library Search Paths
Set up the DRSPICELIB environment variable to point to the DR. SPICE library search paths; for example:
SET DRSPICELIB=C:\DRSPICE\LIB\DRSPICE;C:\USER\LIB