Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extract file on zip with folders
Message
De
10/09/2016 18:29:22
 
 
À
10/09/2016 13:11:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
Hyper-V
Divers
Thread ID:
01640677
Message ID:
01640684
Vues:
163
J'aime (1)
>Has anyone found a dll that allows
>to extract a file from the zip archive that contains
>a file system with multiple folders and subfolders, without extracting the entire archive?

Being ZipFile the source zip file, FileOrFolderToExtract the name of the file or folder (tree) to extract, located anywhere in the zip file structure, and TargetFolder the location where extracted file(s) will be stored, like in:
m.ZipFile = GETFILE("Zip")
m.FileOrFolderToExtract = "Configurations2\accelerator\current.xml"
m.TargetFolder = FULLPATH(SET("Default"))
then
m.Shell = CREATEOBJECT("Shell.Application")

m.Shell.NameSpace(m.TargetFolder).CopyHere(m.Shell.NameSpace(m.ZipFile).items.Item(m.FileOrFolderToExtract))
extracts the selected file(s).
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform