Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create XP compressed folder in VFP
Message
From
24/02/2004 17:07:08
 
 
To
24/02/2004 16:41:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00880426
Message ID:
00880506
Views:
22
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform