Page 1 of 1

HB_UnZipFile() Problem?

Posted: Thu Jul 02, 2009 6:56 am
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

Re: HB_UnZipFile() Problem?

Posted: Thu Jul 02, 2009 9:18 am
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...

Re: HB_UnZipFile() Problem?

Posted: Thu Jul 02, 2009 11:19 am
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

Re: HB_UnZipFile() Problem?

Posted: Thu Jul 02, 2009 1:02 pm
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?

Re: HB_UnZipFile() Problem?

Posted: Fri Jul 03, 2009 2:17 am
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

Re: HB_UnZipFile() Problem?

Posted: Mon Jul 06, 2009 5:44 am
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

Re: HB_UnZipFile() Problem?

Posted: Tue Jul 07, 2009 12:35 am
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

Re: HB_UnZipFile() Problem?

Posted: Tue Jul 07, 2009 6:16 am
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.