Native compress files in windows [SOLVED]

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
rodrigo.brasil
Posts: 10
Joined: 20 Jun 2023 16:15

Native compress files in windows [SOLVED]

#1 Post by rodrigo.brasil » 03 Aug 2023 16:23

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!!
Last edited by rodrigo.brasil on 04 Aug 2023 09:25, edited 1 time in total.

mataha
Posts: 35
Joined: 27 Apr 2023 12:34

Re: Native compress files in windows

#2 Post by mataha » 03 Aug 2023 16:34

I believe tar is available on Windows these days:

Code: Select all

tar --help

rodrigo.brasil
Posts: 10
Joined: 20 Jun 2023 16:15

Re: Native compress files in windows

#3 Post by rodrigo.brasil » 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?

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Native compress files in windows

#4 Post by ShadowThief » 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

rodrigo.brasil
Posts: 10
Joined: 20 Jun 2023 16:15

Re: Native compress files in windows

#5 Post by rodrigo.brasil » 04 Aug 2023 09:24

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!

mataha
Posts: 35
Joined: 27 Apr 2023 12:34

Re: Native compress files in windows

#6 Post by mataha » 06 Aug 2023 10:19

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.

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Native compress files in windows [SOLVED]

#7 Post by ShadowThief » 06 Aug 2023 10:57

Nice, I'm glad someone forked Frank Westlake's code.

Post Reply