/ini

Specify the initialization file or GUI resource file used by the application.

/ini={Path}FileName

Description

Run the application using the initialization file FileName.

The path to, and name of, the .ini file is determined according to the following rules:

  • If Path is omitted, the /ini switch should be preceded by the /adm switch to specify the directory where the application's configuration files are located .

  • If the /ini switch is present and is immediately followed by an equals sign (=), the following string is presumed to contain the path to, and name of, the .ini file to be used.

    • If you specify a Path, enter the complete path, not a relative path. For example:

      /ini=d:uni\xyz\test.ini not /ini=..\xyz\test.ini

      If you do not specify a Path, Uniface searches for FileName in the \adm directory.

    • If you do not specify an extension for FileName, it is presumed to be .ini.

    • Do not use spaces around the equals sign (=). For example:

      /ini=test.ininot/ini = test.ini

  • If no equals sign (=) is present (with or without a text string), an error message is returned to indicate that the /ini switch is incorrect.

  • If no /ini switch is specified, FileName is presumed to be usys.ini in the \adm directory.

    In all cases, Path is presumed to be $USYSADM (\adm).

Using /ini

In the following example, assignments are located in a file named myapp.ini in the default \adm subdirectory under the Uniface installation directory:

/ini=myapp

In the following example, assignments are located in a file named testmyapp.ini in the \testadm subdirectory under the Uniface installation directory:

/ini=d:uniface\testadm\testmyapp.ini

Related Topics