In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TUnzipFile:cDirectory cannot be relative

Xailer professional forum in English
Responder
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

TUnzipFile:cDirectory cannot be relative

Mensaje por Oleg »

Dear developers!
I found that the path in property TUnzipFile:cDirectory cannot be relative.
If I do:
oZip:=TUnzipFile():New()
oZip:cFileName:=cTmpArc
oZip:cDirectory:='ARC'
oZip:Run()
oZip:Free()
the data is always extracted to C:ARC despite of current directory
(C:PROGRAM for example).
Can you check this?
Regards, Oleg
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TUnzipFile:cDirectory cannot be relative

Mensaje por ignacio »

Oleg,
As you can see on the source code (ZipArchive.prg: XunZipFile:Run()) we do
not make any modificaction to cDirectory member and its value is given to
the HB_UnZipFile() XHARBOUR function. So, if there is a bug, surely is on
that function . BTW, I suggest you try with ".ARC"
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:482be8fc$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I found that the path in property TUnzipFile:cDirectory cannot be
> relative.
> If I do:
> oZip:=TUnzipFile():New()
> oZip:cFileName:=cTmpArc
> oZip:cDirectory:='ARC'
> oZip:Run()
> oZip:Free()
> the data is always extracted to C:ARC despite of current directory
> (C:PROGRAM for example).
>
> Can you check this?
>
> Regards, Oleg
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

TUnzipFile:cDirectory cannot be relative

Mensaje por NoName »

Oleg,
As you can see on the source code (ZipArchive.prg: XunZipFile:Run()) we do
not make any modificaction to cDirectory member and its value is given to
the HB_UnZipFile() XHARBOUR function. So, if there is a bug, surely is on
that function . BTW, I suggest you try with ".ARC"
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:482be8fc$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I found that the path in property TUnzipFile:cDirectory cannot be
> relative.
> If I do:
> oZip:=TUnzipFile():New()
> oZip:cFileName:=cTmpArc
> oZip:cDirectory:='ARC'
> oZip:Run()
> oZip:Free()
> the data is always extracted to C:ARC despite of current directory
> (C:PROGRAM for example).
>
> Can you check this?
>
> Regards, Oleg
>
>
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

TUnzipFile:cDirectory cannot be relative

Mensaje por Oleg »

Ignacio,
> As you can see on the source code (ZipArchive.prg: XunZipFile:Run()) we do
> not make any modificaction to cDirectory member and its value is given to
> the HB_UnZipFile() XHARBOUR function. So, if there is a bug, surely is on
> that function . BTW, I suggest you try with ".ARC"
It seems that the path must be full. Your suggestion with ".ARC" does not
work too.
Ok, I can workaround it.
Regards, Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

TUnzipFile:cDirectory cannot be relative

Mensaje por Oleg »

Ignacio,
> As you can see on the source code (ZipArchive.prg: XunZipFile:Run()) we do
> not make any modificaction to cDirectory member and its value is given to
> the HB_UnZipFile() XHARBOUR function. So, if there is a bug, surely is on
> that function . BTW, I suggest you try with ".ARC"
It seems that the path must be full. Your suggestion with ".ARC" does not
work too.
Ok, I can workaround it.
Regards, Oleg
Responder