Dynamicweb 8 Documentation
ZipFolder(DirectoryInfo,String) Method

The folder which content will be compressed
The name of the zip file
Zips the content of the given folder and places the zip inside that same folder
Syntax
'Declaration
 
Public Overloads Shared Function ZipFolder( _ 
   ByVal folder As DirectoryInfo, _ 
   ByVal zipFileName As String _ 
) As Boolean
public static bool ZipFolder( 
   DirectoryInfo folder,
   string zipFileName 
)

Parameters

folder
The folder which content will be compressed
zipFileName
The name of the zip file
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ZipFile Class
ZipFile Members
Overload List

Send Feedback