Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
7-Zip is a popular open-source file archiver that is widely used for compressing and decompressing files. It supports a variety of file formats and is known for its high compression ratio. This article will guide you through the process of using 7-Zip on a Windows environment, including examples of how to execute tasks via the Command Prompt (CMD).
Before you can use 7-Zip, you need to download and install it:
Compressing Files:
Decompressing Files:
7-Zip can also be used from the command line, which is useful for automation and scripting.
Compressing Files:
cd
command.7z a archive_name.7z file1.txt file2.txt
Replace archive_name.7z
with your desired archive name and file1.txt file2.txt
with the files you want to compress.
Decompressing Files:
7z x archive_name.7z
This will extract the contents of archive_name.7z
into the current directory.
Compress a folder:
7z a my_archive.7z C:\path\to\folder
Extract an archive to a specific directory:
7z x my_archive.7z -oC:\path\to\destination
The -o
option specifies the output directory.
7z a archive.7z *.txt
to compress all .txt
files in the directory.-r
option can be used to include subdirectories, e.g., 7z a archive.7z * -r
.