This statement adds a DOS executable file to the beginning of the application or library being created. The stub is invoked whenever the module is executed under DOS. Typically, the stub displays a message and terminates execution. By default, LINK386 adds its own standard stub for this purpose.
The field <filename> specifies the DOS executable file to be added. LINK386 looks for <filename> in the current directory and in the directories specified by the PATH environment variable.
Example
STUB 'STOPIT.EXE'
This example appends the DOS executable file STOPIT.EXE to the beginning of the module. STOPIT.EXE is executed when the module is run under DOS.