It works! thank you for your help. -----Original Message----- From: delphizip-bounce@xxxxxxxxxxxxx [mailto:delphizip-bounce@xxxxxxxxxxxxx]On Behalf Of Roger Aelbrecht Sent: luned=EC 2 agosto 2004 19.24 To: delphizip@xxxxxxxxxxxxx Subject: [delphizip] Re: Moving a directory doesn't work properly... David Obber wrote: > Hi, this is my problem. >=20 > I want to zip the directory X. > The directory X is empty but contains the directory Y. > The directory Y contains some files. > If I zip and move directory X, ZipMaster create the zipfile correctly > =3D but doesn't move the directory X. >=20 > If the directory X contains also a file ZipMaster works correctly. >=20 > Here is the code: > ZipMaster.FSpecArgs.Clear; > ZipMaster.RootDir :=3D3D 'C:\X'; > ZipMaster.AddOptions:=3D3D [AddMove, AddDirNames, > AddRecurseDirs]; ZipMaster.ZipFilename:=3D3D 'x.zip'; > ZipMaster.FSpecArgs.add('Y\'); > ZipMaster.Add; >=20 >=20 > Anyone can help me, please? >=20 >=20 > David Obber > ----------- > To unsubscribe from this list, send an empty e-mail > message to: > delphizip-request@xxxxxxxxxxxxx > and put the word unsubscribe in the subject. I am not sure what you mean with 'move' direcotry, but from your explanation I think you expected ZipMaster to add the empty directory to the archive. If this is true then you need to add AddSeparateDirs to the Addoptions : I also recommend to set the property=20 UseDirOnlyEntries to true to avoid problems when extracting. HTH Roger Aelbrecht http://home.tiscali.be/driehoeksw ----------- To unsubscribe from this list, send an empty e-mail=20 message to: delphizip-request@xxxxxxxxxxxxx=20 and put the word unsubscribe in the subject. ----------- To unsubscribe from this list, send an empty e-mail message to: delphizip-request@xxxxxxxxxxxxx and put the word unsubscribe in the subject.