HB_UnZipFile() Problem?

HB_UnZipFile() Problem?

Postby dutch » Thu Jul 02, 2009 6: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?
Code: Select all  Expand view
#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)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: HB_UnZipFile() Problem?

Postby Loach » Thu Jul 02, 2009 9:18 am

Hello!
It seems it has to be
Code: Select all  Expand view

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

Re: HB_UnZipFile() Problem?

Postby dutch » 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: Select all  Expand view
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)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: HB_UnZipFile() Problem?

Postby Loach » Thu Jul 02, 2009 1: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
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: HB_UnZipFile() Problem?

Postby dutch » Fri Jul 03, 2009 2: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.
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)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: HB_UnZipFile() Problem?

Postby Loach » Mon Jul 06, 2009 5: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
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: HB_UnZipFile() Problem?

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

Re: HB_UnZipFile() Problem?

Postby Loach » Tue Jul 07, 2009 6: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
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 89 guests