@ (Specify Response File)
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

@ (Specify Response File)

Specifies a response file.



A file that lists compiler options or source code files to compile.


The @ option lets you specify a file that contains compiler options and source code files to compile. These compiler options and source code files will be processed by the compiler just as if set out on the command line.

To specify more than one response file in a compilation, specify multiple response file options. For example:

@file1.rsp @file2.rsp

In a response file, multiple compiler options and source code files can appear on one line. A single compiler option specification must appear on one line (cannot span multiple lines).

Response files can have comments that begin with the # symbol.

Specifying compiler options from within a response file is just like making those commands on the command line. For more information, see Building from the Command Line.

The compiler processes command options as they are encountered, just as if set out on the command line. Therefore, the options in one response file may be incompatible with the options in another response file or the command line options. This can generate errors.

Response files cannot be nested. You cannot place @response_file inside a response file. The JScript compiler reports an error for such cases. 


The following are a few lines from a sample response file:

# build the first output file
/target:exe /out:MyExe.exe source1.js source2.js

See Also

JScript Compiler Options

© 2016 Microsoft