BUILD EXE Command

See Also

Creates an executable file from a project.

Syntax

BUILD EXE EXEFileName FROM ProjectName [RECOMPILE]

Arguments

EXEFileName

Specifies the name of the executable file to create. If an .app application file with the same root file name as the stand-alone executable file exists, it is deleted. If an executable file exists and you create an .app file with the same name, the executable file is deleted.

FROM ProjectName

Specifies the name of the project from which the executable file is built.

RECOMPILE

Specifies that the project is compiled before the executable file is built. All program and format files; form, label, report, and visual class library source code; and stored procedures in databases in the project are compiled.

Remarks

For additional information about creating executable files, see Chapter 25, Building an Application for Distribution, in the Programmer's Guide.

An executable file created with BUILD EXE requires two support files: Vfp6r.dll and Vfp6renu.dll (en denotes the English version). These files must be placed in the same directory as the executable file or along the MS-DOS path.

If the executable file contains OLEPUBLIC class definitions, BUILD EXE automatically registers the OLEPUBLIC class definitions in the system registry. OLEPUBLIC class definitions appear in the Server Classes list box on the Servers tab of the Project Information dialog box.

BUILD EXE also creates .vbr (registration) and .tlb (type library) files with the same name as the executable file. The .vbr file allow you to register the class definitions in the system registry when the executable file is moved to a different computer. The .tlb file is for use with object browsers.

For more information about registering OLEPUBLIC class definitions in an executable file, see Chapter 16, Adding OLE in the Programmer's Guide.