fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

PRIMARY OUTPUT DIRECTORY

Syntax:

PRIMARY OUTPUT [ FILE ] DIRECTORY [:] <directory>

Function:

Specifies the directory to which the Fortran primary output files are to be written.

The directory to which INCLUDE files are written is specified by the command INCLUDE OUTPUT DIRECTORY. The command OUTPUT DIRECTORY specifies a single directory for both primary and INCLUDE files.

Files may be directed to the same directories as the input files by the command KEEP OUTPUT DIRECTORIES. It is common practice to use this command and to change a base directory name with the command EDIT OUTPUT FILE NAMES so as to retain the input directory structure.

If KEEP OUTPUT DIRECTORIES is specified, the command PRIMARY OUTPUT DIRECTORY or OUTPUT DIRECTORY should be specified for new files generated by fpt processing.

Please note that:

are written to the current directory. These commands redirect only the Fortran output files.

The output directory must already exist. It will not be created by fpt unless the command CREATE MISSING DIRECTORIES has been specified.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp Yes
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt No
Interactive command files No
Embedded in the Fortran code No

Default

The current directory.

See Also

INCLUDE OUTPUT DIRECTORY

KEEP OUTPUT DIRECTORIES

OUTPUT DIRECTORY

WRITE OUTPUT DIRECTORIES IN INCLUDE STATEMENTS

Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.