List and Zip Files
This tasks allows you to Zip multiple files from a location on your local machine or network, using an optional search pattern. The task wraps the provided List Files and Zip Files tasks to make them easier to use in Workflows and reduce the number of tasks required.
Settings
Folder
Optional
The directory containing the files to list. Use a dot to list files in the workflow's working directory, or the path to the folder.
Recursive
Required
Set to true if you want the task to list all files in sub-directories, or false to only list files in the directory specified.
Search Pattern
Optional
Allows you to specify the type of files to be processed. For example, *.xml
will only list files with the .xml extension.
This should be set to Data Type: Text or script
Compression Level
Required
Select a compression level - higher is better, defaults to highest setting.
Output File
Required
Name of the Zip file to create.
Password
Optional
The password to encrypt Zip file with.
Prepend Timestamp
Required
Set to True to prepend the output files with a timestamp. Defaults to False
.
Timestamp Format
Optional
The format to use when prepending timestamps to file names. Defaults to yyyyMMddHHmmssffff
. Documentation on the allowed values can be found on https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings?view=netframework-4.8.