Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ZipFile::CreateFromDirectory Method

.NET Framework (current version)
 

Creates a zip archive that contains the files and directories from the specified directory.

Namespace:   System.IO.Compression
Assembly:  System.IO.Compression.FileSystem (in System.IO.Compression.FileSystem.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateFromDirectory(String^, String^)

Creates a zip archive that contains the files and directories from the specified directory.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromDirectory(String^, String^, CompressionLevel, Boolean)

Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level, and optionally includes the base directory.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromDirectory(String^, String^, CompressionLevel, Boolean, Encoding^)

Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level and character encoding for entry names, and optionally includes the base directory.

Return to top
Show:
© 2017 Microsoft