Online Manual: "User Management Resource Adminstrator"
Go to: User Management Resource Administrator homepage
Script Action: List files and/or directories
Function
This script action creates a table with files and / or directories.
The result is stored in an output variable.
Deployment
This script action will typically be used in a delegation project with
multiple forms to obtain file and directory info and display the result
in a form table. Project A will contain this script action. In Project
B, you need to define Project A as an initial project. Before the form
of project B is generated, the script of project A is executed and the
result is stored in a user defined variable. This variable can then be
used in the form fields in project B (e.g. in a generic table Variable).
Setting up the script action
|
Name |
Description |
Typical setting |
Remarks |
|
Script action |
|
|
|
|
Path |
Path to the directory of which you want to
collect the underlying files and/or directories. |
User defined |
If you use the browse button, select a file
within the target directory and clear the file name. |
|
Include files |
Set this option to "No" if you do
not want to include files. |
Yes |
|
|
Include directories |
Set this option to "No" if you do
not want to include directories. |
Yes |
|
|
Include subdirs |
Set this option to "No" if you do
not want to include subdirectories. |
Yes |
|
|
Use backup privileges |
A flag indicating that backup and restore
privileges must be used to set up the security settings. This property
is required in case the logged on user has no access rights to the directories
and files that must be copied. The logged on user must have the corresponding
access rghts configured on the target computer. |
No |
|
|
Output variable |
|
User defined |
|
For each returned user object in the variable %FileDirs%
(or any other name you may have given to this output variable),
the following columns are included:
|
Column |
Description |
|
Full path |
Full path to the file or directory |
|
Size (bytes) |
Size of the file in bytes |
|
Size (MB) |
Size of the file in MB |
|
Directory |
Specifies if the object is a directory (Yes/No) |
|
Hidden |
Specifies if the file is hidden |
|
Read only |
Specifies if the files is Read only |
|
Attributes |
Specifies the attribute mask of the file or
directory. |
|
Creation time |
Creation time of the file or directory. |
|
Access time |
Last access time of the file or directory. |
|
Write time |
Last write time of the file or directory. |
|
Name |
Name of the file or directory |
If you want to use the content of the variable in a generic table, you
need to set up a generic table of the Variable type. In the setup procedure,
you can select the column template Files
and or directories list which includes the above mentioned columns.
See also:
Form properties - Initial
project
Script Action: Get
file/directory info
UMRA
tables - Special table type - Generic table Variable
|