In the following example, options on the command line override options in the environment variable. If you enter the following commands:
SET ILINK=/NOI /AL:256 /DE ILINK test ILINK /NODEF /NODEB prog
The first command sets the environment variable to the options /NOIGNORECASE, /ALIGNMENT:256, and /DEBUG
The second command links the file test.obj, using the options specified in the environment variable, to produce test.exe
The last command links the file prog.obj to produce prog.exe, using the option /NODEFAULTLIBRARYSEARCH, in addition to the options /NOIGNORECASE and /ALIGNMENT:256. The /NODEBUG option on the command line overrides the /DEBUG option in the environment variable, and the linker links without the /DEBUG option.