HELP -- SCML ZIP & SPLIT OCX


Properties: 

formExtractCaption  
Type: String
Read-Write
This property allows you to specify the caption for the "Extract" To form.

formExtractIcon
Type: String
Read-Write
This property allows you to use your own icon for the "Extract" To form.

formOverwriteCaption
Type: String
Read-Write
This property allows you to specify the caption for the "Overwrite" form.

formOverwriteIcon
Type: String
Read-Write
This property allows you to use your own icon for the "Overwrite" form.

formPasswordCaption
Type: String
Read-Write
This property allows you to specify the caption for the "Password" form.

formPasswordIcon
Type: String
Read-Write
This property allows you to use your own icon for the "Password" form.

formUnzipCaption
Type: String
Read-Write
This property allows you to specify the caption for the "Unzip" form.

formUnzipIcon
Type: String
Read-Write
This property allows you to use your own icon for the "Unzip" form.

ListCount
Type: Long
Read-Only

This property indicates the number of compressed files in a zip file. Used in conjunction with the getListFiles method, it allows, using a loop for example, to list the files present in a zip file. 
------------------------

Methods:

addFileToZip (Path_and_Filename_to_add As String, zipPath_and_Filename As String, keepFolder As Boolean) As Boolean

Adds the specified file to a zip file.
----------------------------------------------
addFilesToZip_with_dialog (zipPath_and_Filename As String, hwnd As Long, keepFolder As Boolean) As Boolean

Adds files, chosen from a dialog, to a zip file.
----------------------------------------------
getListFiles (ByVal nIndex As Long) As ctlListing

After a call to the ListFilesFromZip method, populates a UDT array with the files contained in a zip file.

Members:
Filename: String
FileSize: Long
FilePackedSize: Long
FileDirectory: String
FileDate: Date
FileCompressionRatio: Long

example: .getListFiles(index).FileDirectory
----------------------------------------------
JOINfiles (Path_Filename_To_Join As String) As String

Reconstitutes the original split file by specifying the first file with extension ".001".
----------------------------------------------
JOINfiles_with_dialog (hwnd As Long) As String

Reconstitutes the original split file by specifying the first file with extension ".001" chosen from a dialog.
----------------------------------------------
ListFilesFromZip (zip_path_name_file As String) As Boolean

Gets the list of files present in a zip file. You can then
use this list as you see fit.
Once called, you can then use the getListFiles method to extract the names of the compressed files present in a zip file.
----------------------------------------------
ListZipContent (Optional zip_path_name_file As String)

Shows the Unzip form.
----------------------------------------------
SPLITfile (Path_Filename_To_Span As String, chunkSize As Long, Optional destination As String) As Boolean

Splits the original file in smaller chunks of defined size. The resulting files will have extensions in the form ".001", ".002", etc...
----------------------------------------------
SPLITfile_with_dialog (hwnd As Long, chunkSize As Long, Optional destination As String) As Boolean

Splits the original file, chosen from a dialog, in smaller chunks of defined size. The resulting files will have extensions in the form ".001", ".002", etc...
----------------------------------------------
UnzipDirectly (Path_Filename_To_Unzip As String, where_Path As String, Optional Overwrite As Boolean) As Boolean

Unzips a file without showing a dialog. Files are specified by the code.
----------------------------------------------
zipFolder (zipPath_and_Filename As String, folder As String, filesPattern As String, keepFolderPattern As Boolean) As Boolean

Zips a complete folder.
----------------------------------------------
zipONEfile (Path_and_Filename_to_zip As String, zipPath_and_Filename As String, keepFolder As Boolean) As Boolean

Zips a file without showing a dialog. Files are specified by the code.
----------------------------------------------
zipONEfile_with_dialog (zipPath_and_Filename As String, hwnd As Long, keepFolder As Boolean) As Boolean

Zips a file chosen from a dialog.
----------------------------------------------

