[delphizip] Re: relative path

  • From: Paul Tiede <PaulTiede@xxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Mon, 11 Nov 2002 19:25:10 +0100

Marco Bianchini wrote:

>Hi all,
>is there a way to store only the relative path into a zip file?
>for example if I have this structure:
>
>c:\myfiles\abc\[some files.*]
>c:\myfiles\abc\subdir\[some files.*]
>c:\myfiles\abc\subdir2\[some files.*]
>
>I'd like to zip the 'abc' directory with all files and dir, but without the 
>'myfiles' prefix
>so, if i extract the zip file into 'c:\test\extract\' I'll obtain this 
>structure:
>
>c:\test\extract\abc\[some files.*]
>c:\test\extract\abc\subdir\[some files.*]
>c:\test\extract\abc\subdir2\[some files.*]
>
>and not this...
>
>c:\test\extract\myfiles\abc\[some files.*]
>c:\test\extract\myfiles\abc\subdir\[some files.*]
>c:\test\extract\myfiles\abc\subdir2\[some files.*]
>
>
>a lot of thanks, marco
>  
>
I had this problem some days ago.
You have to set the RootDir to 'c:\myfiles\', AddSpecArgs to 'some 
files.*' (without any path) and use AddrecusreDirs and AddDirNames.


Other related posts: