TK.ZipFile Method

Creates a zip archive that contains the files and directories from the specified directory.
Public Shared Function ZipFile( _ 
ByVal sourceDirectoryName As String, _ 
ByVal destinationArchiveFileName As String
) As String
This language is not supported or no code example is available.
public static string ZipFile( 
string sourceDirectoryName
string destinationArchiveFileName 
)
This language is not supported or no code example is available.

Parameters

sourceDirectoryName
string

The path to the directory to be archived, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.

destinationArchiveFileName
string

The path of the archive to be created, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.

Return Value

string

If success returns null else string containg error

.NET Framework

Supported in: 4.6.2, 4.7

In this article

Definition