Page 1 of 1

Native compress files in windows [SOLVED]

Posted: 03 Aug 2023 16:23
by rodrigo.brasil
I have 10 files and want to join it in one file! There are 2 ways to do it:
  • Compress the files
  • Join the files
There are a lot of programs that do it with command line. But, with ONLY the default windows, is there any tool that I can compress the files in one computer and decompress it in another?

If not, the other option is doing a copy to join the files. But, how can I undo it? It can use text or binary file and want it to be lossless.

And I can't use Powershelll!!! Only use the cmd.exe!!

Re: Native compress files in windows

Posted: 03 Aug 2023 16:34
by mataha
I believe tar is available on Windows these days:

Code: Select all

tar --help

Re: Native compress files in windows

Posted: 03 Aug 2023 16:42
by rodrigo.brasil
mataha wrote:
03 Aug 2023 16:34
I believe tar is available on Windows these days:

Code: Select all

tar --help
Lol, yes, tar is avaliable, but ONLY in new version of windows. I forget to say about it. Is there other tool to do it in old windows? Or in other words, If the system don't have tar, what are my options?

Re: Native compress files in windows

Posted: 03 Aug 2023 17:19
by ShadowThief
There are several options available, but makecab is probably your best bet. https://stackoverflow.com/questions/280 ... s-with-bat

Re: Native compress files in windows

Posted: 04 Aug 2023 09:24
by rodrigo.brasil
ShadowThief wrote:
03 Aug 2023 17:19
There are several options available, but makecab is probably your best bet. https://stackoverflow.com/questions/280 ... s-with-bat
Great answer! This is exactly what I was looking! I couldn't find it myself!

Re: Native compress files in windows

Posted: 06 Aug 2023 10:19
by mataha
rodrigo.brasil wrote:
03 Aug 2023 16:42
mataha wrote:
03 Aug 2023 16:34
I believe tar is available on Windows these days:

Code: Select all

tar --help
Lol, yes, tar is avaliable, but ONLY in new version of windows. I forget to say about it. Is there other tool to do it in old windows? Or in other words, If the system don't have tar, what are my options?
You'd be interested in this then.

Re: Native compress files in windows [SOLVED]

Posted: 06 Aug 2023 10:57
by ShadowThief
Nice, I'm glad someone forked Frank Westlake's code.