[FILES]

Use the [FILES] section of the assignment file to direct non-DBMS files to their actual location.

Syntax

[FILES]

LogicalFilename {=} {$Path | USYSLogical:} Filename

For example:

[FILES]
my*.txt C:\textfiles\mytext.zip

Arguments

  • LogicalFilename—logical name used by Uniface. Wildcards are allowed in LogicalFilename.
  • $Path—name of a network path, a user-defined path that redirects to a network path, or an environment variable that redirects to a physical path. The path can be to a ZIP archive.
  • USYSLogical For more information, see USYS Path Logicals.
  • ActualFilename—file name. For every wildcard in LogicalFilename, a corresponding wildcard in Filename must be provided.

Description

Use the [FILES] section to identify any non-DBMS files that are required by the application, and their locations.

This section only needs to list files that are not controlled by Uniface, such as HTML and text files. For Uniface application files, use the [RESOURCES] to specify the application location.

File Assignments with Wildcards

The following example assignment file specifies that files that match the profile a_*.txt are redirected to the network path $tcp, except for file a_myfile.xml, which is redirected to the file c:\leda\xml\myfile.txt:

[FILES]
a_myfile.txt = c:\leda\xml\myfile.txt
a_*.txt = $tcp:a_*.txt

File Redirections With $RES

The following assignment instructs Uniface to locate text files in a zip file whose location is specified by the [RESOURCES] section.

[FILES]
*.txt $RES:mytext.zip

[RESOURCES]
c:\MyApp\myapp.uar
c:\MyApp\mytext.zip

Related Topics