HB_UnZipFile() Problem?

Post Reply
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

HB_UnZipFile() Problem?

Post by dutch »

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?

Code: Select all

#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 19.01 / 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)
Loach
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: HB_UnZipFile() Problem?

Post by Loach »

Hello!
It seems it has to be

Code: Select all

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
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: HB_UnZipFile() Problem?

Post by dutch »

Dear Loach,

I've used Windows Server 2003 R2 and the problem is following line, it return nil.

Code: Select all

aFiles := hb_GetFilesInZip(cFile)   // return nil
Best regards,
Dutch
Regards,
Dutch

FWH 19.01 / 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)
Loach
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: HB_UnZipFile() Problem?

Post by Loach »

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
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: HB_UnZipFile() Problem?

Post by dutch »

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.
Image
- Yes, I can use the same code with local drive and it works ok.

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / 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)
Loach
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: HB_UnZipFile() Problem?

Post by Loach »

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
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: HB_UnZipFile() Problem?

Post by dutch »

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 19.01 / 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)
Loach
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: HB_UnZipFile() Problem?

Post by Loach »

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
Post Reply