Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to zip files?
Message
 
To
06/08/2019 04:33:40
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01669525
Message ID:
01669915
Views:
70
Likes (1)
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform