Comprimir y descomprimir con WinXP
Visual Fox Pro, Trucos Comentarios ( 0 ) »************************************
* COMPRIMIR
************************************
cNuevoZip = "C:MiArchivo.Zip"
cOrigen = "c:Directorio"
Strtofile(Chr(0x50)+Chr(0x4B)+Chr(0x05)+Chr(0x06)+Replicate(Chr(0),18),cNuevoZip)
oShell = Createobject("Shell.Application")
For Each oArchi In oShell.NameSpace(cOrigen).Items
oShell.NameSpace(cNuevoZip).CopyHere(oArchi)
Endfor
************************************
* DESCOMPRIMIR
************************************
cMiZip = "C:MiArchivo.Zip"
cDirDesti = "c:Directorio"
oShell = Createobject("Shell.Application")
For Each oArchi In oShell.NameSpace(cMiZip).Items
oShell.NameSpace(cDirDesti).CopyHere(oArchi)
EndFor
Por: David Amador T