Cannot zip properly
- From: "Jack" <bigshow@xxxxxx>
- Date: 24 Oct 2006 05:20:11 -0700
Hello everybody,
I have the same problem as described in
http://groups.google.de/group/microsoft.public.vb.general.discussion/browse_thread/thread/aef2035839e64c2b/2dcf50488c99fdba?lnk=st&q=VB%2Bzip%2Brecurse&rnum=2&hl=de#2dcf50488c99fdba
Although Mark Alexander Bertenshaw seems to have found his solution, I
haven't found mine yet. My problem is the following:
This is the code I use:
Private WithEvents m_cZ As cZip
With m_cZ
.ClearFileSpecs
.BasePath = "D:\Visual Basic\MyDB\MyDBFolder\"
.ZipFile = "C:\ZipTest.zip"
.RecurseSubDirs = True
.StoreDirectories = True
.StoreFolderNames = True
.AddFileSpec "D:\Visual Basic\MyDB\MyDBFolder\*.*"
.Zip
End With
I want to zip the files in the folder "D:\Visual
Basic\MyDB\MyDBFolder". This code does that but it adds the full folder
structure to the zip file:
Visual Basic--->MyDB--->MyDBFolder--->Subfolders....
However, I only want to zip the files and subfolders in "MyDBFolder":
MyDBFolder--->Subfolders...
No matter what I try, I simply can't get the program to do what I want.
Can anyone help me?
Greetings,
Jack
(For the people who read the thread mentioned above: I have set the
m_tZPOPT.fRecurse to 1)
.
- Follow-Ups:
- Re: Cannot zip properly
- From: Larry Serflaten
- Re: Cannot zip properly
- From: mayayana
- Re: Cannot zip properly
- Prev by Date: Re: How to tell if .NET Framework is installed
- Next by Date: Calling form in DLL.
- Previous by thread: Dir() function problem
- Next by thread: Re: Cannot zip properly
- Index(es):
Relevant Pages
|