[delphizip] relative path

  • From: "Marco Bianchini" <bcorp@xxxxxxxxxxxxx>
  • To: <delphizip@xxxxxxxxxxxxx>
  • Date: Mon, 11 Nov 2002 19:15:06 +0100

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




Other related posts: