Click or drag to resize
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.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static void EnableEncryption(
	string path,
	PathFormat pathFormat
)

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