|
![]() |
| The "AccessApply" Command - Applies Access permissions |
Permissions defined with the
"ACCESS" command can be used on the
"File", "Files",
"Directory", "DirectoryTree"
and "Registry" commands, however sometimes you have
preexisting items that you wish to use and this is what this command
enables.
To do this the "LockPermissions" table
will be updated.
This command takes these parameters:
Another (perhaps simpler) alternative way of doing this is to use the "Directory" command to create an alias while also using it's "access" parameter.
| EXAMPLE |
<$Access "FullAccess4Admins" Access="GENERIC_ALL" Users="Administrators SYSTEM">
<$Access "ReadOnly4Users" Access="GENERIC_READ" Users="Users">
<$Access "ReadAndExecuteOnly4Users" Access="GENERIC_READ GENERIC_EXECUTE" Users="Users">
<$Component "CreateTheFolder" Directory_="<$AnyDir>" LM="Y">
<$Table "CreateFolder">
<$Row Directory_="PROTECT_THIS_DIR_FROM_USERS" Component_="<$Component?>"> ;;"PROTECT_THIS_DIR_FROM_USERS" directory already defined
<$/Table>
<$/Component>
<$AccessApply Type="folder" RowKey="PROTECT_THIS_DIR_FROM_USERS" ACCESS="FullAccess4Admins ReadOnly4Users">
<$AccessApply Type="file" RowKey="<$VENDOR_OCX_FILEKEY>" ACCESS="FullAccess4Admins ReadAndExecuteOnly4Users">
![]() | ![]() |