Using a Response File with Microsoft LINK

Article translations Article translations
Article ID: 40429 - View products that this article applies to.
This article was previously published under Q40429
Expand all | Collapse all

On This Page


A Microsoft LINK response file contains responses to the prompts that the LINK utility displays. The responses must be in the same order as the LINK prompts.

LINK interprets the lines in the response file as if they were typed as responses to the prompts or on the command line. A carriage return-linefeed (CR-LF) combination in the response file corresponds to pressing the ENTER key in response to a prompt or including a comma on the command line.

Note: A response file cannot contain any comments.


The following response file example links modules MOD1.OBJ and MOD2.OBJ to create an application called MODX.EXE. The linker creates MODM.MAP as a map file, uses the LLIBCEW.LIB and OLDNAMES.LIB libraries, the NODEFAULTLIBRARYSEARCH and NOEXTDICTIONARY options, and the PROJ.DEF module- definition file.

Sample File

mod1 mod2
llibcew oldnames /NOD /NOE
To use this sample file named RESPONSE.ONE, type the following at the command line:


Article ID: 40429 - Last Review: September 30, 2003 - Revision: 2.0
  • Microsoft LINK for MS-DOS 3.x
  • Microsoft LINK for MS-DOS 5.01.20
  • Microsoft LINK for MS-DOS 5.01.21
  • Microsoft LINK for MS-DOS 5.03
  • Microsoft LINK for MS-DOS 5.05
  • Microsoft LINK for MS-DOS 5.1
  • Microsoft LINK for MS-DOS 5.13
  • Microsoft LINK for MS-DOS 5.15
  • Microsoft LINK for MS-DOS 5.3
  • Microsoft LINK for MS-DOS 5.31.009
  • Microsoft LINK for MS-DOS 5.5
  • Microsoft LINK for MS-DOS 5.6
kb16bitonly KB40429
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from