TK.ZipFile Method
Creates a zip archive that contains the files and directories from the specified directory.
<HTML5Disabled(true)> _
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.
[HTML5Disabled(true)]
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.8