The UpdateZipDate method sets the date of the archive file to the most recent date among the files it contains.
To update the "last modified date" of a zip file in regards to the most recent "last modified date" of the files that it contains:
Visual Basic | Copy Code |
---|---|
|
Declaration (ActiveX) | |
---|---|
Method UpdateZipDate( xOptions As xcdUpdateZipDateOptions ) |
Declaration (DLL API) | |
---|---|
void XzUpdateZipDate( HXCEEDZIP hZip, xcdUpdateZipDateOptions xOptions ) |
Parameter | Description |
---|---|
xOptions | This parameter determines which of the zip file's dates will be updated to the most recent date among the files it contains. |
If no file matches the specified filters, or a date is not specified, error 509 (xerNothingToDo) will be returned.
If xutFromCreatedDate, xutFromLastAccessedDate or xutFromRespectiveDate is used in combination with xutUpdateCreatedDate or xutUpdateLastAccessedDate, the zip file MUST use the "filetimes extra headers" otherwise this information is not available.
All the filtering properties are applied when using the UpdateZipDate method. It is exactly like calling the ListZipContents method and only looking at the files that have the "bExcluded" parameter of the ListingFile event set to false. Other than the ListingFile event, all other events are the same.
The UpdateZipDate method cannot be used on archive files created with the SpanMultipleDisks property set to True.