Decompress Files Action
<AMDECOMPRESS ZIPFILE="text" DEST="text" OVERWRITE="yes/no" ISNEWER="yes/no" PASSWORD="text" EXCLUDE="text" ISNEWERTHAN="datetime" ISOLDERTHAN="datetime">
Decompresses files from the specified compressed file into the destination folder specified. To specify more than one file to decompress use wildcards ( e.g. * or ? )
Usually used to decompress files received from the Internet via e-mail or FTP or when restoring from a backup.
Specifies the file(s) to decompress. This parameter should be a fully qualified path and filename (preferred) or a single file (requires use of the Change Folder action). Wildcards ( e.g. *.* or ? ) may be used to decompress all files matching a certain mask.
Specifies the destination folder for the file(s) being decompressed. This should be a fully qualified path.
When set to YES, specifies that, if present in source compressed file, subfolders should be automatically created and files placed in their corresponding subfolders.
When set to YES, specifies that, if matching file(s) already exist in the destination folder they should be overwritten.
Valid only if the "Overwrite if exist" [OVERWRITE] parameter is YES. When set to YES, specifies that only matching files that are newer than those in the destination folder will be overwritten.
If specified, uses this password to decompress a password protected file.
Causes the action to not decompress files from the archive matching the mask(s) specified. Filenames or wildcard ( e.g. * or ? ) masks may be used, multiple entries may be specified by separating them with the | symbol (e.g. *.txt|*.bak)
Causes the action to decompress files from the archive only if the source is newer than the date/time specified. If parameter is left blank or not included, the date of the files will be ignored (excluding "Only if newer" [ISNEWER] parameter).
Causes the action to decompress files from the archive if the source is older than the date/time specified. If parameter is left blank or not included, the date of the files will be ignored (excluding "Only if newer" [ISNEWER] parameter).
This action includes the Description tab for entering a custom step description.
More on setting custom step description
This action also includes the standard Error Causes and On Error failure handling options/tabs.
More on Error Handling Options
All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.
More on variables
More on expressions
More on the expression builder
NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.
<AMDECOMPRESS ARCHIVEFILE="c:\temp\" DESTINATION="c:\targetfolder\" TYPE="zip" OVERWRITE="YES" />