7-Zip is a file compression archiving program

learn more… | top users | synonyms (1)

4
votes
1answer
625 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
243 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
261 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
555 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
2k views

How do I add files from a directory to a .zip-File using the 7zip command line?

I am using the 7zip command line to zip-up files. How can I add all files and subdirectorys from a folder to a zip file (.jar archive file)? I used: 7zip.exe a -t7z file.zip C:\folder Thank you.
2
votes
1answer
2k 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
420 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
109 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
160 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
63 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
177 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
267 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
170 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
216 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
301 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
305 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 ...
1
vote
1answer
1k views

Convert .tar.gz/.tar.bz2 to .7z in batch?

How do I convert .tar.gz and .tar.bz2 files to .7z files using the command line?
0
votes
1answer
76 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
62 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
493 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: ...
0
votes
1answer
193 views

zip sub folders individually

can anyone help me make a batch file for my problem. i have multiple folders that i want to compress individually. root folder 1 file 1 file 2 ...
0
votes
1answer
265 views

7Zip and forfiles - Invalid argument/option - 'a'

I need some help with a script I'm working on. It seems I'm missing something. The command line is as follows: forfiles /P "F:\source_path\" /M *.bak /D -1 /C ""D:\7za\7za a -tzip -mx7 -v40m ...
0
votes
1answer
155 views

7zip archive is too large when using -x

I am compressing a dir into a zip, and use several -x switches. 7z a -tzip -x!.\test1.gadget\.git\* -x!.\test1.gadget\.gitignore test1.zip .\test1.gadget\* 7-Zip [64] 9.22 beta Copyright (c) ...
0
votes
1answer
381 views

pfSense iso.gz doesn't seem to be a compressed iso image

I downloaded the latest pfSense ISO (pfSense-2.0.1-RELEASE-i386.iso.gz) and had 7zip extract it, but it just shows me the disk contents. I cannot extract the actual ISO file to burn it with the boot ...
0
votes
1answer
88 views

7Zip add string to zip name

I have a 7zip command line process that zips by date and its works well. The command creates a zip file with date IE 20121019.zip. However Id like to add a string to the file name. for example ...
0
votes
1answer
2k views

Incorrect parameter error when using 7-zip from the command line in Windows

I am running the following command: 7z.exe a -t7z -m9=LZMA2 test.7z test.txt However, I get this error: System error:The parameter is incorrect. The error only occurs if I use the -m9=LZMA2 or ...
2
votes
0answers
31 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
439 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
604 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
8 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
42 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
1k 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
127 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
281 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
80 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
903 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
149 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
37 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
0answers
10 views

7ZSFX Modified link creation error

Hi, I have been using the modified 7zsfx for a while (http://www.7zsfx.info/en/) now and have come across a problem I am re-compressing some of my old dos games and running them using dosbox. I have a ...
0
votes
0answers
24 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
91 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
170 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
48 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
37 views

Is there a consistency check in 7z's self-extract executable?

What I mean is that when you run a self-extracting executable... Does it check the consistency of the files? For example if you use a .exe RAR, it will open a dialog if there is something wrong ...
0
votes
0answers
95 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
161 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
452 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
296 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
213 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
827 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 ...