Page 2 of 2 FirstFirst 12
Results 41 to 47 of 47

Thread: [VB6] 7-zip support

  1. #41

    Thread Starter
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,167

    Re: [VB6] 7-zip support

    Quote Originally Posted by wqweto View Post
    I don't think 7-zip has support for *compressing* in tar.gz format, most probably only extraction is available.
    No, 7-zip supports both .tar and .gz and both compression and decompression. Replied with more details to your other thread.

    cheers,
    </wqw>

  2. #42
    New Member L'mars's Avatar
    Join Date
    Mar 2021
    Location
    Bolivia
    Posts
    5

    Re: [VB6] 7-zip support

    Hi
    That command line looks interesting, how can I use it in Visual Basic 6?, In the 'Immediate' window?, How do you use the tar.exe?

    I thank you for solving my doubt in the question I asked here: https://www.vbforums.com/showthread....Visual-Basic-6, I was almost about to have to relearn C++ or Java to make libraries and I don't know what else, to find the best way to get it afloat.

    Thank you, go ahead, I wish you all the best, if I have another question in the future I will let you know, sorry for the inconvenience.

    L'mars

  3. #43
    PowerPoster
    Join Date
    Jan 2020
    Posts
    5,538

    Re: [VB6] 7-zip support

    Quote Originally Posted by Tech99 View Post
    Currently does not extract .rar packages. Vszlib reports .Filecount as zero (0) for rar package.
    7z.dll version 18.5.0.0 (18.4.2018)

    Code:
        With New cVszArchive
            .Init Makepath(App.Path, "7z.dll")
            .OpenArchive SevenZipFile 'file name tested test.rar
            
      Debug.Print .FileCount
    
            .Extract App.Path & "\Unpacked"
        End With

    7zip file manager opens and extracts rar file OK.
    does it support winrar format now?

  4. #44
    PowerPoster
    Join Date
    Jan 2020
    Posts
    5,538

    Re: [VB6] 7-zip support

    Z. DLL, how is this made? There is no official open source, right? Z. Exe, this is open source can decompress rar, he can only be made into exe, if made into DLL is not a patent infringement? If you change it to a pipe communication console, first create the zip as a memory-mapped file, 7z.exe opens the handle of the compressed package file, and then it needs to decompress a file or a subdirectory inside, and then it writes it to a new memory-mapped file. Then output a console text to complete the decompression, or display the progress of decompression. In this way, the source code is almost unchanged, and the exe can be used as a DLL. Why doesn't Microsoft create a mapping file or a virtual file that can be opened directly by any program?

  5. #45
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,733

    Re: [VB6] 7-zip support

    Quote Originally Posted by xiaoyao View Post
    does it support winrar format now?
    See the RAR website
    https://www.rarlab.com/rar_add.htm.
    Premade DLL and source available for unrar

  6. #46
    Fanatic Member HackerVlad's Avatar
    Join Date
    Nov 2023
    Posts
    681

    Re: [VB6] 7-zip support

    Quote Originally Posted by Arnoutdv View Post
    See the RAR website
    https://www.rarlab.com/rar_add.htm.
    Premade DLL and source available for unrar
    By the way, there's a ready one at the bottom of the page "UnRAR OCX control" UnRAR OCX control for use within Visual Basic program.

  7. #47
    Fanatic Member
    Join Date
    Apr 2015
    Location
    Finland
    Posts
    692

    Re: [VB6] 7-zip support

    I need to compress single files into gzip format. Is vszlib able to pass switches like parameters are passed?

    Code:
        With New cVszArchive
            .AddFile "your_file"
            .Parameter("t") = "gzip"
            .CompressArchive "test.gz"
        End With
    Equivivalent 7z command line: 7z.exe a -tgzip "test.gz" "your_file"

    Edit: It seems to work ok, when using standard gzip '.gz' as extension for the compressed file, otherwise does not create compressed file, thanks.
    Last edited by Tech99; May 1st, 2026 at 08:01 AM.

Page 2 of 2 FirstFirst 12

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