Click or drag to resize

DirectoryEnableEncryption Method (String, PathFormat)

[AlphaFS] Enables encryption of the specified directory and the files in it.

This method only creates/modifies the file "Desktop.ini" in the root of path and enables encryption by writing: "Disable=0"

This method does not affect encryption of files and 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).
See Also