|
Zip Files Action |
Description
|
|
|
Parameters
Files To Zip
The list of files you wish to compress into the .zip file. This line can contain one or more files, separated by semi-colons. Wildcards are fully supported. You can include multiple wildcards by separating each one with a semi-colon (for example, to compress all the files with a file extension of .txt and .cpp in the c:\tocompress folder, the parameter would be: c:\tocompress\*.txt;c:\tocompress\*.cpp)Files To Exclude (optional)
A list of one or more files that you wish to exclude from being included in the compression. This is usually used in conjunction with a wildcard used for the Files To Zip parameter to above. For example, if we wanted to compress all the files in the c:\tocompress folder as indicated in the example above, but we did not want to compress the leavemeout.cpp file in that folder, we would put “c:\tocompress\leavemeout.cpp” in the File To Exclude parameter. Wildcards and multiple files separated by semi-colons is also accepted here.Name of Archive
The name, including full path, of the zip file to create.Include subfolders
When selected, AutoMate™ will enable a list of options to control how file paths will be stored in the zip file. The available options are:Do not preserve folders: Includes all files in the subfolders relative to the path specified in the Files to Zip parameter. No folder structure information is saved.
Preserve relative folders: Includes all files in the subfolders relative to the path specified in the Files to Zip parameter. Folder structure information is saved relative to the path specified in the Files to Zip parameter.
Example: Files to Zip "c:\MyDir\*.*". If there is a sub folder and it has files in it ( "c:\MyDir\Sub Folder\SomeFile.txt" ), this file will be saved in the zip file with the path information as "\Sub Folder".Preserve absolute folders: Includes all files in the subfolders relative to the path specified in the Files to Zip parameter. Folder structure information is saved relative to the root folder on the hard drive, including all parent folder names.
Example: Files to Zip "c:\MyDir\*.*". If there is a sub folder and it has files in it ( "c:\MyDir\Sub Folder\SomeFile.txt" ), this file will be saved in the zip file with the path information as "\MyDir\Sub Folder".Notes
The step fails if the zip file can not be created (if there is insufficient disk space for either the final zip file or the temporary files that may be created during the compression process) or if one or more of the files indicated in Files To Zip cannot be found.
Related Topics: