LINK Help (linker.hlp) (Table of Contents; Topic list)
STUB Statement
                                             Up Contents Index Back
─────LINK───────────────────────────────────────────────────────────────────
 
     Syntax:  STUB {'filename' | NONE}
 
     Adds a DOS executable file to the beginning of a segmented
     executable file. The stub is invoked whenever the file is executed
     under DOS.
 
     The <filename> specifies the DOS file. LINK looks for <filename>
     in the current directory and then in directories specified with
     the PATH environment variable. If you specify a path with
     <filename>, LINK looks only in that location. The <filename> must
     be enclosed in single or double quotation marks (' or ").
 
     The alternate specification NONE prevents LINK from adding a
     default stub. By default, if STUB is not specified, LINK adds a
     standard program that issues a message. The text of the message
     depends on the specified EXETYPE. NONE saves space in the file,
     but the program will hang the system if loaded in DOS.
 
     Example
 
          STUB 'STOPIT.EXE'
 
     This example inserts the DOS executable file STOPIT.EXE into a
     segmented executable file. STOPIT.EXE is executed if the program
     is run under DOS.
                                    -♦-