WorkDir

Specifies the name of the working directory during the Uniface session.

WorkDir=DirectoryPath

Default value: C:\Users\UserAccount\Uniface Version\project (Windows ) or UnifaceDir\common\project
File section: [paths]

Description

The working directory is the default location where a Uniface application reads and writes data and files. All paths that are not fully qualified are relative to the working directory.

For example, for the IDE it is where Uniface compiles components, and writes ProcScript listings, export files, and so on, unless another location is specified.

The WorkDir setting overrides the directory specified by the /dir command line switch.

You can configure Uniface to compile and write to different directories using file redirection or the $RESOURCES_OUTPUT setting. When exporting files, you can override the WorkDir location by providing a full path name.

If the WorkDir setting is not specified, the project directory (as specified by the Project setting) is used. If the specified working directory does not exist, an error message is displayed and application initialization fails.

The value can be read or changed dynamically at runtime using the $setting ProcScript function.

Microsoft Windows allows you to specify the working directory in the program’s Properties, but this is overridden by a WorkDir specification.

Related Topics