A command file is a response file that you use to extend command-line input to NMAKE. Use a command file for complex and long commands that you type frequently or for strings of command-line arguments, such as macro definitions, that exceed the limit for command-line length.
To provide input to NMAKE with a command file, type:
nmake @commandfile
For the commandfile, type the name of a file that contains the same information that you would normally enter on the command line.
NMAKE treats line breaks that occur between arguments as spaces. Macro definitions can span multiple lines if you end each line except the last with a backslash (\). You must enclose macro definitions that contain spaces in quotation marks, just as if you entered them directly on the command line.
The following example is a command file called update:
/s “program \
= flash” sort.exe search.exe
You can use this command file by typing the following command:
nmake @update
This command runs NMAKE using these items:
The backslash allows the macro definition to span two lines.