Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ZipFolder() in vfpcompression.fll
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01253880
Message ID:
01253952
Views:
24
Yes but i have'nt all the sub directories ....in the zip file .

>Would it work if you change second parameter to .T. ?
>
>>sorry for disturbe...
>>
>>
>>Try this code :
>>
>>
>>=test149()
>>
>>FUNCTION test149()
>>  CLEAR
>>  SET LIBRARY TO LOCFILE("vfpcompression.fll")
>>  ?zipopen( "data21.zip" , "C:\backup\" )  && Return .T.
>>
>>   ?zipfolder("C:\cdbk90\Amline\Data1" , .F. )  && RETURN .T.
>>
>>  ?zipclose()  && RETURN .T.
>>  SET LIBRARY TO
>>
>>ENDFUNC
>>
>>
>>
>>I have a file ( data21.zip with only 1 Ko ????
>>
>>
>>bernhart
>>
>>
>>
>>>If you don't care about path stored in the ZIP, try
>>>
>>>IF ZipFolder(THIS.lcFolderName , .T.)
>>>
>>>BTW, there's no need to compare return value of ZipFolder() with .T. or .F. because it's logical already.
>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform