Thanks Mark
I will give it a quick try but I think renaming the file prior to zipping it is going to be my simplest option now.
I will just add an underscore to the start before zipping it then remove it later on when I want it to behave as a flag.
BTW my compliments on your wrapper class I use it a lot:)
>OOps. I should have looked at the DynaZip class first. You can not mix Zip parameters with Unzip parameters. The exclude option is only available during zip operations. There is no exclude option in the unzip operation. Run this code to get a list of all the files in the zip:
>local oDZ
>oDZ = newobject('dynazip', 'dynazip.fxp')
>with oDZ
> .cUnz_ZipFile = getfile("Zip Files:ZIP,EXE", "File to Unzip:")
> .cUnz_FileSpec = "*.*"
> .cUnz_Destination = getenv("Temp")
> .lUSO_ExternalProg = .t.
> .GetAllZipFileInfo()
> suspend
>endwith
>oDZ.Release()
>The 11th element of each file is the Index number. You can extract each file [1-by-1] based on its index number or you can create a list of all the files to extract by looping through the array and building the UNZ_FileSpec string.