FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour HB_UnZipFile() Problem?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
HB_UnZipFile() Problem?
Posted: Thu Jul 02, 2009 06:56 AM
Dear All,

I've trouble with HB_GetFilesInZip() and HB_UnZipFile(). It cannot read file in NETWORK drive but it works file for local drive.
What is my problem?
#include 'fivewin.ch'

Function Main
local lOk, aFiles, cFile

cFile := 'M:\easyfo\fo\data\foliohis\f031016.zip' 

msginfo( file(cFile) )   // return .T.

aFiles := hb_GetFilesInZip(cFile)   // return nil

lOk := hb_unzipfile(cFile,,,,'M:\easyfo\fo\data\temp\',,NIL)  // return .F.

return nil
Regards,
Dutch
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 41
Joined: Thu Dec 22, 2005 07:39 AM
Re: HB_UnZipFile() Problem?
Posted: Thu Jul 02, 2009 09:18 AM
Hello!
It seems it has to be
Code (fw): Select all Collapse
lOk := hb_unzipfile(cFile,,,,'M:\easyfo\fo\data\temp',aFiles,NIL)

I tryed it on Novell netware and it's work fine...
Best regards!

Sergey (Loach) Abelev

fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: HB_UnZipFile() Problem?
Posted: Thu Jul 02, 2009 11:19 AM
Dear Loach,

I've used Windows Server 2003 R2 and the problem is following line, it return nil.
Code (fw): Select all Collapse
aFiles := hb_GetFilesInZip(cFile)   // return nil


Best regards,
Dutch
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 41
Joined: Thu Dec 22, 2005 07:39 AM
Re: HB_UnZipFile() Problem?
Posted: Thu Jul 02, 2009 01:02 PM

Dear Dutch!
What release of [x]Harbour you use?
Can you try this situation on another type of server?
Can you try to define array aFiles by hand (not use hb_GetFilesInZip)?
Is your zip file correct and can you unzip this file not in program by hand?

Best regards!

Sergey (Loach) Abelev

fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: HB_UnZipFile() Problem?
Posted: Fri Jul 03, 2009 02:17 AM
Dear Loach,
Loach wrote:Dear Dutch!
What release of [x]Harbour you use?
Can you try this situation on another type of server?
Can you try to define array aFiles by hand (not use hb_GetFilesInZip)?
Is your zip file correct and can you unzip this file not in program by hand?

- xHarbour Build 1.2.1 (FW release)
- No, I do not try.
- Yes, I try but it got error as following.

- Yes, I can use the same code with local drive and it works ok.

Regards,
Dutch
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 41
Joined: Thu Dec 22, 2005 07:39 AM
Re: HB_UnZipFile() Problem?
Posted: Mon Jul 06, 2009 05:44 AM

Dear Dutch!
You can send me your zip and compiled program. I will check your unziping on Novell netware....
My mail: Loach(at)mail.ru

Best regards!

Sergey (Loach) Abelev

fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: HB_UnZipFile() Problem?
Posted: Tue Jul 07, 2009 12:35 AM
Dear Loach,

Thank you very much, I've sent to your private mail. If who need to test, I'll be appreciated.
http://www.sendspace.com/file/7se6ux

Regards,
Dutch
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 41
Joined: Thu Dec 22, 2005 07:39 AM
Re: HB_UnZipFile() Problem?
Posted: Tue Jul 07, 2009 06:16 AM

Dear Dutch!
At first, in your examle I see the path :'\adsserver\server\easyfo\fo\data\foliohis\testzip.zip'
So, I feel some doubt about '\adsserver'. Did you try to map the servers disk by letter (like above 'M:\easyfo\fo...')

At second, can you send me compiled program (exe file) with any unzipin path like 'M:\easyfo\fo...'. Possible we have different ways of compiling our exe files.

Best regards!

Sergey (Loach) Abelev

fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55

Continue the discussion