|
-
Mar 29th, 2021, 02:43 PM
#41
Re: [VB6] 7-zip support
 Originally Posted by wqweto
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>
-
Mar 30th, 2021, 05:28 PM
#42
New Member
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
-
Dec 28th, 2024, 05:02 AM
#43
Re: [VB6] 7-zip support
 Originally Posted by Tech99
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?
-
Dec 28th, 2024, 07:05 AM
#44
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?
-
Dec 28th, 2024, 07:39 AM
#45
Re: [VB6] 7-zip support
 Originally Posted by xiaoyao
does it support winrar format now?
See the RAR website
https://www.rarlab.com/rar_add.htm.
Premade DLL and source available for unrar
-
Dec 30th, 2024, 09:51 AM
#46
Fanatic Member
Re: [VB6] 7-zip support
 Originally Posted by Arnoutdv
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.
-
May 1st, 2026, 07:43 AM
#47
Fanatic Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|