|
|
|
|
|
WLanguage procedure called by zipAddDirectory WLanguage procedure ("Callback") called when adding files with zipAddDirectory. This procedure allows you to archive a tree structure by excluding one or more files.
DirectoryName is string
ArchiveName is string = "MyArchive"
CreationErrorCode is int
AdditionErrorCode is int
CreationErrorCode = zipCreate(ArchiveName, "C:\MyDirectory\MyArchives\PdfArchive.wdz")
IF CreationErrorCode = 0 THEN
DirectoryName = fSelectDir("", "", "Directory to add")
AddErrorCode = zipAddDirectory(ArchiveName, DirectoryName, True, "", ...
zipDrive, zipAddDirectory_Callback)
IF AdditionErrorCode <> 0 THEN
Error(zipMsgError(AdditionErrorCode))
END
ELSE
Error(zipMsgError(CreationErrorCode))
END
INTERNAL PROCEDURE zipAddDirectory_Callback(FileName is string)
IF fExtractPath(FileName, fExtension) ~= ".gif" THEN
RETURN True
ELSE
RETURN False
END
END
Sintaxis
<Result> = zipAddDirectory_Callback(<File name>)
<Result>: Boolean - If the procedure returns True, the file must be included in the archive.
- If the procedure returns False, the file must not be included in the archive.
<File name>: Character string Path of the file that will be processed by zipAddDirectory.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|