Results 1 to 2 of 2

Thread: Folder compression???

  1. #1

    Thread Starter
    Addicted Member mandark's Avatar
    Join Date
    Oct 2002
    Posts
    188

    Angry Folder compression???

    Hi folks,

    Can any help me out with this problem?

    I need to compress a folder and its contents. This folder has subfolders and files beneath it. All these needs to be compressed.

    I am currently using the code library from www.vbaccelerator.com. For those of you who have used it the code snippet is as follows-

    Dim m_cZip As New clsZip
    With m_cZip
    .ZipFile = "D:\zipsample.zip"
    .ClearFileSpecs
    .BasePath = "D:\TEST"
    .AddFileSpec "*.*"
    .StoreFolderNames = True
    .RecurseSubDirs = True
    .Zip
    If Not (.Success) Then MsgBox "Error!"
    End With
    Set m_cZip = Nothing

    Well, it does zips, BUT the contents of the App.Path (that is in my case D:\Projects\Compression), and not the intended folder that is "D:\TEST".

    Any other code would be welcome.

    Thanks in advance.

  2. #2

    Thread Starter
    Addicted Member mandark's Avatar
    Join Date
    Oct 2002
    Posts
    188
    bump!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width