Quote Originally Posted by L'mars View Post
Hello WQWETO

Can your code be used to create tar files?

I have the problem of packing multiple XML files with TAR format.

I am using the language Visual Basic 6, with which I create from one to less than 500 XML files, to later want to pack them with the TAR format, generating a file called package.tar, which in turn I will have to compress with GZIP to finally build a file called package.tar.gz

I tried the code of this website https://github.com/wqweto/VszLib, but I can only create files called package.7z

Or do you know other ways to do it, for example with dll libraries made with C++?

Thanks for the space to consult you.
I don't think 7-zip has support for *compressing* in tar.gz format, most probably only extraction is available.

The good news is there is a copy of tar.exe utility bundled with every instance of Windows 10 already since a couple of years now, so you have to figure out its command-line options only :-))

Try this:

C:\> tar -cvzf C:\TARS\sqlbackup.tar.gz *.sql


cheers,
</wqw>