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

  • From: "R. Peters" <russellpeters@xxxxxxxxxxx>
  • To: <delphizip@xxxxxxxxxxxxx>
  • Date: Thu, 19 Feb 2004 07:41:02 +1100

The only problem with that idea is that the drive spec is not passed to the
event so you still don't know which is which - I am trying to find a way
around that problem but it is almost impossible to keep it compatible with
previous applications!
- Russell Peters
----- Original Message ----- 
From: "Roger Aelbrecht" <Roger.Aelbrecht@xxxxxxxxxx>
To: <delphizip@xxxxxxxxxxxxx>
Sent: Thursday, February 19, 2004 5:21 AM
Subject: [delphizip] Re: Error: Bad Zip Option specified (from Poland)


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.


-----------
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: