LFN2SFN Support for HB_UNZIP

LFN2SFN Support for HB_UNZIP

Postby RAMESHBABU » Wed Dec 21, 2011 1:08 am

Hi Friends,

I am getting error when I try to read the files using
Code: Select all  Expand view

HB_GETFILESINZIP( cInputFile )
 


It happens only when the file name is beyond 12 chars in length,
include its extension.

It did not work even with LFN2SFN function.

Can anybody suggest me a way out.

Thanks

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: LFN2SFN Support for HB_UNZIP

Postby anserkk » Wed Dec 21, 2011 5:27 am

Dear Mr.Ramesh,

The below given code is working fine for me.

Code: Select all  Expand view
#include "FiveWin.ch"
#include "xBrowse.ch"
//------------------//
Function Main()
    Local aFiles,lOk,cFolder
    // Zip and Unzip functions, should include the libs named HbZip & zlib available in \xHarbour\lib
    cFolder:="E:\ZipTest\"
   
    // Array containing the list of files in the ZipFile with Path
    aFiles := hb_GetFilesInZip("
LongFileNameZipFile")
    xBrowser aFiles
   
    lOk := hb_unzipfile("
LongFileNameZipFile",,.T.,,cFolder,aFiles,NIL)
    MsgInfo(lOk)
Return lOk


Regards

Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 113 guests