Questions tagged [7zip]

"7z" or "7-Zip" may refer either to the open-source 7z compression container format or to the file name of the executable program of the same name that is the flagship implementation of the compression format. Both are GPL-licensed and under active development.

"7z" or "7-Zip" may refer either to the open-source 7z compression container format or to the file name of the executable program of the same name that is the flagship implementation of the compression format. Both are GPL-licensed and under active development.

The 7z format is a compressed archive file format that supports several different data compression, encryption and pre-processing algorithms. The LZMA SDK 4.62 was placed in the public domain in December 2008. The latest stable version of 7-Zip and LZMA SDK is version 18.05. The MIME type of 7z is application/x-7z-compressed.

The 7-Zip program is an open source file archiver. 7-Zip operates with the 7z archive format, but can read and write several other archive formats. The program can be used from a command line interface, graphical user interface, or with Microsoft Windows shell integration. 7-Zip's development began in 1999, and it is actively developed by Igor Pavlov. It is related to a cross-platform port, p7zip. 7-Zip is free software distributed under the GNU Lesser General Public License (LGPL). It was the winner of the SourceForge.net 2007 community choice awards for "Technical Design" and for "Best Project".

7z has an open architecture, so it can support any new compression methods. Now the following methods are integrated to 7z:

  1. LZMA: Improved and optimized version of LZ77 algorithm
  2. LZMA2: Improved version of LZMA
  3. PPMD: Dmitry Shkarin's PPMdH with small changes
  4. BCJ: Converter for 32-bit x86 executables
  5. BCJ2: Converter for 32-bit x86 executables
  6. BZip2: Standard BWT algorithm
  7. Deflate: Standard LZ77-based algorithm
1441 questions
-1
votes
1 answer

Can I keep track of a zipping process in C#/CMD and determine exactly when is complete?

So, I am using Execute Shell in a program I am working with and I need to zip some files by command, I decided to use 7zip as it comes with NuGet. I also added a message for the final user saying that the process got completed, I got that message 30…
-1
votes
1 answer

I wanna compress folders from one network drive to another network drive using 7zip over cmd, jenkins

I have folders on server 1, and i just want to compress files to another server. So i tried with: 7z a "\server1\plugins\Arhiva_plugins_2018_01.7z "\server2\jenkinstest*" 7zip compressed everything on \server1\pluigins\ Is it possible to…
mappetshow
  • 49
  • 10
-1
votes
1 answer

How to remove 7z word from zipped files?

As i mentioned at the title i need to remove 7z word from the zipped folder. If i will create a 7z archive it just looks like this. If i use n++ to open it it looks like this. Any way to remove just at the start (the other is the folder name inside…
-1
votes
1 answer

Using powershell with 7zip - password protect each file in a folder

I am trying to password protect 10 files (using the same password) in a folder. Once completed, i would like to have 10 individual zip files each with the same password. My script is as follows but it errors out saying it cant open the file as…
kahoots
  • 191
  • 2
  • 10
-1
votes
1 answer

Windows rmdir batch to delete FOLDERS but skip files

So i have a dir called c:\user\jdoe\desktop\Folder1\ Inside folder1 i have many folders with subfolder and files. I have a 7-Zip batch that zips all the folders in place. So now i have subfolders and subfolders.zip inside folder1. I need a batch…
Mo Heyns
  • 1
  • 2
-1
votes
2 answers

Encrypt folder or zip file using python

So I am trying to encrypt a directory using python and I'm not sure what the best way to do that is. I am easily able to turn the folder into a zip file, but from there I have tried looking up how to encrypt it with AES, but couldn't get that to…
user7728832
  • 11
  • 1
  • 3
-1
votes
1 answer

How to rename each *.7z file in a directory to name of *.cue file inside each 7-Zip archive file?

My question is related to: Batch Rename contents of ZIP file to ZIP file name But I am looking for a simpler batch file, as I do not understand that very well. I have about 600 .7z files. I want these 7z files names to match a .cue file contained in…
bad.boo
  • 1
  • 1
-1
votes
1 answer

Compress/zips folder while excluding specific folders

I am trying to find a way to compress/zip folders in a file-share. There are some folders that need to be omitted. However all the folders that I need compressed have names that are 29 characters long. I was looking into both using a bat file or a…
-1
votes
1 answer

How might I update this code to run a second time but only on a zip archive already unzipped?

Here is the code I am currently using: # Don't include "\" at the end of $NewSource - it will stop the script from # matching first-level subfolders $ignore = "somename" $files = gci $NewSource -recurse | Where { $_.Extension -match "zip||prd"…
RadFox
  • 419
  • 1
  • 4
  • 17
-1
votes
1 answer

Extract exactly one file (any) from each 7zip archive, in bulk (Unix)

I have 1,500 7zip archives, each archive contains 2 to 10 files, with no subdirectories. Each file has the same extension, however the filename varies. I only want one file out of each archive, but I'd like to perform this in bulk. I do not care…
MattWithoos
  • 341
  • 1
  • 15
-1
votes
1 answer

Zip files individually regardless of extension

Below is my code: Function ZipOnebyOne{ $extension = Get-ChildItem $filePath foreach ($file in $extension) { $name = $file.name $directory = $file.DirectoryName $zipfile = $name.Replace($fileExtension,".7z") …
SPUDERMAN
  • 187
  • 1
  • 1
  • 10
-1
votes
2 answers

Getting 7-Zip error - Unable to pass File-names with spaces to Process.Start() method

I need to pass .zip file location into files parameter in the below c# code. If the file name DOES NOT CONTAIN spaces, everything is working fine. But, if the file name DOES CONTAIN spaces, it is throwing below error. Cannot find archive Below is…
Ashok kumar
  • 1,593
  • 4
  • 33
  • 68
-1
votes
1 answer

Filter files out of a folder, and copy them to a other folder

I ask a few questions here and every time I am very pleased with the answers, so here we go again. I have three folders inside the folders the files have the same names except for the file structure: 1 folder with .zip 1 folder with .7zip 1…
-1
votes
2 answers

How do i run 7zip through powershell to extract a .rar folder?

i have googled this already but i simply cannot find a straightforward right answer. i want to add a way to extract a .rar folder whether it be via winRAR or 7zip into my powershell script so i can automate it. I know powershell has a built in…
Dpw808
  • 119
  • 1
  • 3
  • 10
-1
votes
1 answer

Outlook VBA - How to unzip content

Background: I have a script that iterates through emails (without any emails being selected) in an Outlook folder saving their attachments to the desktop. Issue: The attachment is a zip-file and I wonder if it is possible to save the decompressed…