Jump to content
Fivewin Brasil

hb_unzipfile


syspel

Recommended Posts

ola pessoal

bom ano 2016 para todos

muita saude e paz

amiquinho

funcao hb_unzipfile do xharbour

hb_unzipfile()

esta funcao faz o restore do arquivos,

faz que fez mais nao restora

aonde esta errado ?

o win7 32

xharbour 123 fwh2.7 dbf xdev

function teste
cfile=destino+"\rh"+sigla+vano+".zip"

exemplo=C:\rh00115.zip

if ! file(cfile)
msgstop( "Não achei o arquivo", "Aviso" )
aget[1]:setfocus()
aget[1]:setpos(1)
return .f.
endif

cSenhazip=" "

aExtract:=hb_GetFilesInZip( cFile ) // extract all files in zip

IF hb_UnzipFile( cFile, {| cFile | QOut(cFile) },, cSenhaZip, '.\', aExtract )
QOut( "Arquivo foi extraido com sucesso" )
lOk := .T.
ENDIF

return .t.

deste ja obrigado

carlos

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...