func X3.EN_FILE_ZIP(Clbfile PATH_TO_COMPRESS_IN, Clbfile PATH_ZIP_FILE_IN, Char INCLUSIONS_FILTER_IN, Char EXCLUSIONS_FILTER_IN, Tinyint RECURSIVE_IN, Char PASS_IN) : Tinyint

Allows you to zip (compress) a file or directory

  • PATH_TO_COMPRESS_IN Clbfile Full path or volume to the directory or file to be zipped
  • PATH_ZIP_FILE_IN Clbfile Full path or volume to the zipped file to create or complete
  • INCLUSIONS_FILTER_IN Char Filter to apply to the files to be zipped in order to include only those that match (Example: *.txt, extraction*)
  • EXCLUSIONS_FILTER_IN Char Filter to apply to the files to be zipped in order to exclude the corresponding ones (Example: *.dll, password*)
  • RECURSIVE_IN Tinyint Must also compress subdirectories if existing (1=Yes, 0=No)
  • PASS_IN Char Password to apply to the zipped file and necessary for unzipping (or empty)
Return Tinyint The number of files unzipped or 0 if not
Example

func X3.EN_FILE_ZIP(filpath('SVG','',''), filpath('tmp','SVG','zip'), "*.dat", "", 0, "" )
Compress all the SVG save directory of the current folder keeping only the .dat files and saved in the tmp directory under the name SVG.zip without password