[delphizip] Re: Error: Bad Zip Option specified (from Poland)

  • From: "Roger Aelbrecht" <Roger.Aelbrecht@xxxxxxxxxx>
  • To: <delphizip@xxxxxxxxxxxxx>
  • Date: Wed, 18 Feb 2004 19:21:37 +0100

p_piter wrote:
> Yes I know but I add to compress files/folders from a ListBox where
> my files have full pathnames (C:\test.txt , D:\test.txt, C:\help.txt
> and so on) . How can I compress them with full pathnames? I have no
> idea. 
> 
> Piotr Murawski
> 
> 
> ----- Original Message -----
> From: "James Turner" <james.d.h.turner@xxxxxxxxxxxx>
> To: <delphizip@xxxxxxxxxxxxx>
> Sent: Wednesday, February 18, 2004 12:03 PM
> Subject: [delphizip] Re: Error: Bad Zip Option specified (from Poland)
> 
> 
>> By convention, drive letters are not stored as part of the path
>> information in a zip file. Therefore, the operation you are
>> attempting, whilst technically possible, will fail.
>> 
>> Hope this helps
>> 
>> -- James Turner
>> 
>> ----- Original Message -----

As James already mentionned the drive letters are not included in the
filespec. This is how the dll's work
However you could overcome your problem using the OnSetNewName event
this is called for every file to be added to the archive,
In the event handler you coudl change the filenames in something
like c_test.txt; d_text.txt and so on.
That way you get your drive spec in the filename and at the same
time make your filenames unique

HTH

Roger Aelbrecht
http://web.wanadoo.be/driehoeksw

-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: