Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • F: Full Control
  • C: Change
  • R: Read
  • X: Execute
  • E: Read Execute
  • W: Write
  • D: Delete

 


Syntax

Security_SetFilePermissions(sFile, sTrustee, sRight) As Boolean

 


Parameters

sDir (String)

Name of the File

...

Access Right that should be set

 


Example

Code Block
languagevb
themeEclipse
languagevb
titleVBScript
If bStatus Then bStatus = Security_SetFilePermissions(gsProgramFiles & "\CapaInstaller\CapaInstaller.bat", "S-1-5-4", "F")

Scripting Guidelines

 


Related functions

Security functions Security_DenyFileAccess Security_RevokeFilePermissions