midl /out path-specification
midl /out c:\mydir\mysubdir\subdir2 deeper filename.idl
midl /out c: filename.idl
midl /out \mydir\mysubdir\another filename.idl
The /out switch specifies the default directory where the MIDL compiler writes output files. The output directory can be specified with a drive letter, an absolute path name, or both. The /out option can be used with any of the switches that enable individual output file specification.
When the /out switch is not specified, files are written to the current directory.
The default directory specified by the /out switch can be overridden by an explicit path name specified as part of the /cstub, /header, /proxy, or /sstub switch.
General MIDL Command-line Syntax, /cstub, /header, /proxy, /sstub