Since you do not like the exclude method proposed by Lloyd --
Unless your flag file has meaningful data in it, you could just not include the flag file in the ZIP file or not extract it from the zip file. After the unzip operation is complete, just create the flag file yourself.
>I am writing an application that uses Dynazip to unzip a collection of files.
>
>It is important that one of the files is always the last one to be unzipped since another application checks for the existance of this file to see if Dynazip has finished delivering all the files.
>
>Looking at the log Dynazip produces when it unzips I can see no logical order. It does not seem to sort them by file name, date-time, or size.
>
>I can probably solve the problem by renaming my "End_of_Send.TXT" file to something else before its zipped and then renaming it after it has arrived but I would like to avoid this.
>
>All help gratefully received.
Mark McCasland
Midlothian, TX USA