getProgramDataDirectory

getProgramDataDirectory(): String;

The getProgramDataDirectory method of the Process class returns a string containing the path of the program data directory. The program data directory is used to share files among the users of the executables; for example, the jommsg.log file or shared dictionary spelling files that are updated.

If JADE is not installed under the \Program Files directory, the path of the JADE HOME directory is returned.

If JADE is installed under the \Program Files directory, the value that is returned by the getProgramDataDirectory method depends on the value of the ProgramDataDirectory parameter in the [JadeEnvironment] section of the JADE initialization file. If the directory does not exist, JADE creates it.

The values of the ProgramDataDirectory parameter and the corresponding values returned by the getProgramDataDirectory method are shown in the following table.

ProgramDataDirectory Value Return Value
<default> The path of the JADE HOME directory with the \Program Files portion replaced with the programmatically obtained path of the common application data directory. For example, a presentation client installed into \Program Files\Jade Software\parsys returns \ProgramData\Jade Software\parsys.
<homedir> The path of the JADE HOME directory.
<programdata> The same as for <default>.
Directory name Directory name.