EXEHDR Options

Option names are not case sensitive and can be abbreviated to the shortest unique name. This section uses meaningful yet legal forms of the option names. Specify number arguments to options in decimal format or C-language notation. EXEHDR has the following options:

/HEA[[P]]:number

Sets the heap allocation field to number bytes. This option is only for segmented executable files.

/HEL[[P]]

Calls the QuickHelp utility. If EXEHDR cannot locate the Help file or QuickHelp, it displays a brief summary of EXEHDR command-line syntax.

/MA[[X]]:number

Sets the maximum memory allocation to number 16-byte paragraphs. The memory allocation fields tell DOS the maximum memory needed to load and run the program. The number must equal or exceed the minimum allocation. This option is equivalent to LINK's /CPARM option and applies only to DOS programs.

/MI[[N]]:number

Sets the minimum memory allocation to number 16-byte paragraphs. See the /MAX option for more information.

/NE[[WFILES]]

Sets a bit in the header to notify the loader that the program may be using an installable file system.

/NO[[LOGO]]

Suppresses the EXEHDR copyright message.

/P[[MTYPE]]:type

Sets the type of application. The type is one of the keywords for either LINK's /PM option or the NAME statement in a .DEF file. The keywords are PM (or WINDOWAPI), VIO (or WINDOWCOMPAT), and NOVIO (or NOTWINDOWCOMPAT).

/R[[ESETERROR]]

Clears the error bit in the header of a segmented executable file. LINK sets the error bit when it finds an unresolved reference or duplicate symbol definition. The operating system does not load a program if this bit is set. EXEHDR displays the message Error in image if it finds the error bit set. This option allows you to run a program that contains LINK errors and is useful during application development.

/S[[TACK]]:number

Sets the stack allocation to number bytes. The /STACK option is equivalent to LINK's /STACK option.

/V[[ERBOSE]]

Provides more information about segmented executable files. The additional information includes the default flags in the segment table, all run-time relocations, and additional fields from the header. For more information, see “EXEHDR Output: Verbose Output”.

/?

Displays a brief summary of EXEHDR command-line syntax.