/Fe (Name EXE 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

/Fe (Name EXE File)


This option specifies a name and a directory for the .exe file or DLL created by the compiler. Without this option, the compiler gives the file a default name using the base name of the first source or object file specified on the command line and the extension .exe or .dll.

If you specify the /c, to compile without linking, /Fe has no effect.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
  2. Click the Linker folder.
  3. Click the General property page.
  4. Modify the Output File property.

To set this compiler option programmatically

See OutputFile Property.


The following command line compiles and links all C source files in the current directory. The resulting executable file is named PROCESS.exe and is created in the directory C:\BIN.


The following command line creates an executable file in C:\BIN with the same base name as the first source or object file:

CL /FeC:\BIN\ *.C

See Also

Output-File (/F) Options | Compiler Options | Setting Compiler Options | Specifying the Pathname

© 2016 Microsoft