Programming Reference Manual
 
Syntax
 
ZipFiles(ZipFile, SourceDir, InclMask[, ExclMask][, RecurseDirs][, StorePathnames])
 
Description
Compresses files and stores them into a .zip archive file. If the archive file exists, files will be added to the archive. If compressed files already exists in the archive, they will be overwritten.
 
The function returns True if the compression completed successfully. If an error occured, the function returns False.
 
Especially when compressing large (quantity of) files, the progress of the compression operation can be monitored by watching the status bar of the TRADIUM main programme.
 
Parameter
Description
Zipfile
The path and file name of the .zip archive. If it not exists, a new archive will be created.
SourceDir
This string value is the path and name of the source directory. A path relative to the current directory can be used. 
InclMask
This string value is the name of the file search pattern. To select all files from the sourcedir use "*.*".
ExclMask
This mask is to make exceptions to the include mask. For example: "*.sys" to prevent system files to be archived.
RecurseDirs
Boolean. When True, all subdirectories of sourcedir will be scanned for matching files to be added to the archive.
StorePathnames
Boolean: When True, the complete path of the filenames will be stored also in the archive.
See Also
Example
 
Sub Main
    Debug.Print ZipFiles("C:\test.zip", "C:\", "*.bat")  'True
End Sub