Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to zip files?
Message
De
06/08/2019 10:25:50
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01669525
Message ID:
01669920
Vues:
59
>>>Is there a VFP tool with source code, free if available that would let me zip files?
>>
>>You don't need any tool for this. You can use Windows zip functions, I'll share code with you which I found a message at this forum years ago.
>
>You mean this?
>
>
cFileZip = "C:\temp2\D401001F.ZIP"
>cSource = "c:\temp1\"
>strtofile(chr(0x50)+chr(0x4B)+chr(0x05)+chr(0x06)+replicate(chr(0),18),cFileZip) && Créer un fichier zip
>o=CREATEOBJECT("shell.application")
>FOR EACH ofile IN o.NameSpace(cSource).items
>   o.NameSpace(cFileZip).copyhere(ofile)
>ENDFOR
>
yes.. :)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform