DirectoryEnableEncryption Method (String, PathFormat) |
[AlphaFS] Enables encryption of the specified directory and the files in it. It does not affect encryption of subdirectories below the indicated directory.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void EnableEncryption(
string path,
PathFormat pathFormat
)
Public Shared Sub EnableEncryption (
path As String,
pathFormat As PathFormat
)
public:
static void EnableEncryption(
String^ path,
PathFormat pathFormat
)
static member EnableEncryption :
path : string *
pathFormat : PathFormat -> unit
Parameters
- path
- Type: SystemString
The name of the directory for which to enable encryption. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Remarks This method will create/change the file "Desktop.ini" and wil set Encryption value: "Disable=1"
See Also