7-Zip is an open source file compression and archiving application

learn more… | top users | synonyms (1)

4
votes
1answer
685 views

Strip path segment while extracting using 7zip?

Is there a way to extract a 7z archive that contains all it's files within a directory without creating this directory in the file system but still keeping the sub-directory structure of the archive ...
3
votes
1answer
252 views

Is there a way to make 7zip temporarly uncompress the whole archive when double-clicking on an exe?

In WinRAR, one feature which I like is the fact that you can set it to uncompress the whole archive in a temporary place, if you double-click on an .exe file inside the archive opened in WinRAR. ...
2
votes
1answer
747 views

7zip - self-extracting executables require admin privileges and trigger compatibility warning

When I create self-extracting archive executables for Windows with 7zip, the .EXEs trigger UAC on Windows7. And frequently after unzipping, I get this: I'm using commandline like: 7z a -sfx7z.sfx ...
2
votes
1answer
681 views

Automatically extract and rename extracted file according to archive's name

I have a bunch of zip files in a folder. Each zip file has a file in it named exp_1.txt. I would like to unzip each zip file and rename the extracted file from each zip file to what the zip file was ...
2
votes
1answer
3k views

How to add files to specified folder in archive with 7zip command line

I have folders and files on my disk C:\builds\main.exe D:\components\a\testa.exe D:\components\b\testb.exe D:\components\c\testc.exe D:\dependencies\abc.dll Can I create an archive with 7z command ...
2
votes
1answer
435 views

How to give the 7z file the name of the current directory?

How to compress a directory with 7zip and give the archive file the name of the current directory? I use the following command line: "C:\Program Files\7-Zip\7z.exe" a -mx9 archive.7z -mhe=on ...
1
vote
1answer
795 views

7-Zip: Unsupported Compression Method while trying to extract a zipx file that consists of JPEGs

A zipx file I received consists of .csv files and .jpeg files. I used 7-zip to extract them. While the .csv files were sucessfully extracted, the JPEG files didn't. The error was something like this ...
1
vote
1answer
332 views

7-zip -xr!*.bat is creating an empty archive with the batch files name

I am trying to exclude files from a 7-zip batch. The syntax is: for %%A in (*) do "C:\Program Files\7-Zip\7z.exe" a -tzip -xr!*.docx "%%A.zip" "%%A" -xr!*.bat The command is creating zip files ...
1
vote
1answer
286 views

Read x64 registry branch from 7-zip SFX Installer via PowerShell

I want my 7-zip self-extracting archive to run a PowerShell script after it extracts files. To do that, I use method described here: ...
1
vote
1answer
90 views

How to unzip a zip file to a folder but avoid duplicate folders?

I think you all know that: you're getting a zip file and you don't know whether it contains all files in a folder or only the files. In order to not get a messed up directory, I never use "Extract ...
1
vote
1answer
252 views

7zip command to extract with full paths (excluding first folder level)

Using 7zip command line version, I need to extract a .7z file with full paths but excluding the first folder level within the archive. I thought that this command below would work but it still ...
1
vote
1answer
331 views

find files with spaces modified in last 60 days and tar.gz in files no bigger then 4gb with date

I maintain a file server. I need to backup files that have changed in a period of time. First i compressed up everything to 4gb files and backed up to dvd. But 7z that I was using 7z a -t7z ...
1
vote
1answer
192 views

How to archive using the shell extension and still exclude files with 7zip?

How can I exclude files from archiving in 7-zip's "Add to Archive" dialogue? I know how to do this from the command line, but it doesn't seem possible from the "Add to Archive" dialogue. I thought ...
1
vote
1answer
290 views

How do I use 7-zip AND from SPECIFIC folder backup only the config.xml files

I have a Jenkins Server which I want to Backup using 7-zip. I want to backup the full C:\JENKINS with all the sub directories with only one exception. The exception is that from the JOBS folder I ...
1
vote
1answer
351 views

7-zip alternative for mac os (that allows editing within the zip)

I've been using 7-zip in Windows, and looking for its alternative for Mac OS. Various tools I tried able to open/archive/extract, but I can't update it within the tool itself, like dragging and drop ...
1
vote
1answer
338 views

7-Zip: Create a zip file from a subdirectory, with the same name as the subdirectory itself

I have a unique situation where I need the following folder structure (Windows) X:\LOGS\PRIMARY\YEARMONTHDAY e.g., X:\LOGS\HS\20121010 Folders are created every morning. Essentially I'd like to ...
0
votes
1answer
104 views

Extract Java7u60 Server on Windows

I've downloaded the file server-jre-7u60-windows-x64.tar.gz from http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html and am trying to extract it with 7Zip. I ...
0
votes
1answer
804 views

7z in batch file with variables “Incorrect command line”

I'm trying to run the following batch file: set HH=%time:~0,2% set HH=%HH: =0% IF %time:~0,2% GTR 5 ( IF %time:~0,2% LSS 21 ( FOR /F "TOKENS=1 DELIMS=:" %%A IN ('TIME/T') DO SET HH=%%A XCOPY ...
0
votes
1answer
129 views

7zip, Extract to a folder as default in the GUI

I am using 7zip for the first time coming over from WinRAR but its missing an important feature for me. I want to be able to extract my files to a folder like so: C:/Downloads/file.zip press extract ...
0
votes
1answer
1k views

7-zip backup folders, exclude some of folders but keep excluded folder's name

By using 7-zip in Linux I need to save zip file to absolute path: /var/www/vhosts/mysite.com/httpdocs/app/webroot/myfiles.7z backup all files and subfolders inside this: ...
2
votes
0answers
44 views

Is it possible to make 7-Zip also extract all the other files when double clicking an exe?

With Winrar, when I double click an exe file in an archive, it also extracts all the other files in the archive, which is really handy for when the program depends on the other included files. I want ...
2
votes
0answers
540 views

Can you fix a corrupted 7z file?

So, I had a cd, with a scratch on it. The cd contained a 7z file. When I try to copy the file it gave me an error, so I used corrupted disk repair fixer and I managed to open the 7z, and view the ...
2
votes
0answers
655 views

Command line switching

I have read through some suggestions but I am just not technical enough to get this I think. I am a CAD designer and each file has 5 files associated with it. I have 3 sets of 5 files, and each set ...
1
vote
0answers
14 views

What archivers support symlinks on Windows?

I'd like to back up and restore directory trees that include symlinks created with "mklink /d" on Windows 7. Are there any free & open source archivers that support windows symlinks? winrar 5.1 ...
1
vote
0answers
27 views

7zip on command line: can I use both include and exclude switches?

Here's my directory structure (in Windows 8.1): parentdir\ child1\ child2\ grandchild1\ grandchild2\ grandchild3\ ... child3\ child4\ ... Using ...
1
vote
0answers
28 views

Possible to make a switchless install from a password protected archive?

I am using 7-zip to make a switchless install (method for doing so here and here). I would like to use a password protected archive to make said install to help prevent the average user from simply ...
1
vote
0answers
60 views

How to hide error dialog box in 7zip?

I am using "C:\Program Files\7-Zip\7zG.exe" -y x -pmypassword "D:\Myfile.rar" -o"D:\Extracted Files\" for extracting a file encrypted with password. Now if 'mypassword' is not the correct password ...
1
vote
0answers
2k views

7-zip command line -p switch not working according to help page [Solution Found]

I want to be able to automate the encryption of the file type .pcapng in a windows batch script. My current problem is that I get an error when extracting the encrypted file saying something along the ...
1
vote
0answers
148 views

How can I create a self-extracting executable from the windows command line that accepts the default install directory as a parameter?

I have tried several different methods including winzip command line and 7zip, but I cannot find a method that will let me create a self-extracting executable that will extract to a specific directory ...
1
vote
0answers
402 views

7zip command line - extract all files in a folder except *.exe

I am using the command: 7z.exe x -y -o<dir> <archive dir> * -aoa -r to extract all archives that are located in the archive directory. I am running into a problem where exe files that ...
1
vote
0answers
88 views

How would i make 7zip take a folder + subdirectories and individualy zip to bzip format each file in each sub directory

I want to know how to make 7zip take a folder + subdirectories and individualy zip to bzip format each file in each sub directory. if there is not a way then oh well.
1
vote
0answers
1k views

'No such interface supported' when attempting to compress file through 7zip commandline

When I run the 7zip commandline: > echo foo | 7za a arc.7z -sifoo.txt Everything works as expected, but if I try to do: echo foo | 7za a arc.zip -sifoo.txt I get the following: ...
1
vote
0answers
157 views

How to make a split archive for DVD storage where single files are extracted from the set without needing all the DVD's

I'm getting ready to 7z/rar/whatever 1125 files (About 300GB) into a split archive with each piece being 4,700,372,992 bytes. The idea is that I can put each split onto a DVD+R that will fill the DVD ...
0
votes
0answers
5 views

How to modify files within mszip (cab) executable?

I can list and extract certain executable contents using 7z. It seems to be using standard compression methods. Path = test.exe Type = Cab Method = MSZip How can I modify files inside that ...
0
votes
0answers
28 views

Linux equivalent settings for 7zip

I'd like to use the same settings as below (Win7) on Linux to compress files, but I fail to get equal compression results, for which I blame myself not correctly using 7za. So far, I have 7za a ...
0
votes
0answers
25 views

Fixing the 7-zip COM surrogate issue?

My favorite archiver 7zip is unable to open the pictures in Windows Picture Viewer. The creator Igor Pavlov Says: The Program1 (some photo file handler) calls another Program2 (windows photo viewer) ...
0
votes
0answers
62 views

Why does Firefox keep trying to download 7zip_14396_stf.exe and setup_tsv48ouvr.exe

When I start Firefox for the first time, two files try to download, but their download fails. I have searched to find out what these files are. The "7zip" file is from safe downloads, and it looks ...
0
votes
0answers
57 views

Extract and delete all zip and rar files in subfolders + rename if files in archive have same name

i have few thousands rar and zip files in folders and subfolders. I want to extract them, and if there are the same filenames, for example: dir1 -subdir1 archive.zip ...
0
votes
0answers
52 views

What switches can be used to install 7zip?

I'm looking for a comprehensive list of switches 7zip will accept when installing. The 7zip FAQ only seems to list silent switches: How can I install 7-Zip in silent mode? For exe installer: ...
0
votes
0answers
45 views

Have a self extract archive extract to specific folder

How can I create a self extracting archive that will extract the contents into a specific folder? Any program or method is acceptable on windows.
0
votes
0answers
43 views

Sequential Compression of [Text] Files (7zip and Windows)

This is with Windows 7. I have an iterative process, and on each iteration it produces a text file. What I want to do is compress this text file on each iteration to an archive. I'm using vb.net and ...
0
votes
0answers
126 views

Can't extract really long file name with 7-zip

I have scoured this page which seems to be the only info I can find on extracting really long file names. Although the examples in this page deal with compressing, I would think the same principles ...
0
votes
0answers
380 views

7ZG.exe - extract subfiles and subdirectories of a specific folder

I have a zip archive, containing a folder called filesFolder. I want to extract the contents of that directory (filesFolder) without the directory name prefixed. This is the command I have so far: ...
0
votes
0answers
74 views

Batch rearchive zip into 7z using best options and asking for each what to do

Batch repacking zip archives into 7z this one helps a bit, but I would like to get asked for each ZIP files to what to do(opts: delete, repack, leave as it is), and idk if this script does, but after ...
0
votes
0answers
118 views

command line extracting especified file from 7z file

I would like to extract a specific file from a 7z file, but that filename exist twice on different directories. How can I choose one of them? I tried using compressed path but I received an error ...
0
votes
0answers
201 views

How I can identify the packer which was used for creation of some crapware installer bundles (setup.exe)

A lot of so called "freeware" bundle installers contains one or more unwanted disgusting crapware components like the evil ask toolbar or other similar hexadecimal shit. Is it possible to identify the ...
0
votes
0answers
538 views

7z.exe (How to Add or Delete Files inside a SubFolder in *.jar file?)

I am totally new using 7za.exe! I heard that 7za.exe also called as 7zip was being used to replace or add files inside a jar file extesion! I am trying to replace or file inside 3 sub folders in a jar ...
0
votes
0answers
343 views

p7zip installs, but doesn't install? (7za: command not found)

I've uploaded it to /usr/local and used ./install.sh with ssh. I get the following: - installing /usr/local/man/man1/7z.1 - installing /usr/local/man/man1/7za.1 - installing /usr/local/man/man1/7zr.1 ...
0
votes
0answers
236 views

Is it possible to recover partial compressed files?

Of the most popular compression methods (7z, RAR, Zip, GZip) is there any of them that allows to retrieve the uncompressed data from a partial file? Imagine there is only one compressed file, and it ...
0
votes
0answers
911 views

How to fix 7z.tmp file created in Windows xp?

I created large .7z.tmp file without noticing the .tmp extension. Now I can't open it to salvage the files which were not kept elsewhere. I have seen code by Igore that looks like it fits this problem ...