Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create XP compressed folder in VFP
Message
De
24/02/2004 17:07:08
 
 
À
24/02/2004 16:41:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00880426
Message ID:
00880506
Vues:
24
>>>Can anybody tell me how you would create an XP compressed folder from within VFP?
>>
>>Never mind! It's really pretty simple:
>>
>>
ofs = CREATEOBJECT("Scripting.FileSystemObject")
>>ofs.CreateTextFile("C:\test.zip")
>>or even
>>
STRTOFILE("","c:\test2.zip")
>
>Interesting. Would this "text file" have the correct format - or perhaps be over-written by a correct ZIP file later?

I don't know. Now I'm running into a problem as to how you programmatically *put* files into this zipped folder. I can put files into it just fine through Explorer with drag & drop, but I can't copy files into it, either from a program or from a Windows cmd window. Any ideas?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform