0
votes
1answer
36 views

7z a folder in chunks of 100MB and decompress

I am trying to 7z a folder (in chunks of 100MB) and add it to archive in Linux. Is the following command correct? tar cf - dir/ | 7z a -v100m -si dir.tar.7z How can I decompress the folder? I have ...
0
votes
1answer
69 views

Cannot unzip with zip command line

I am having difficult unpacking a zip to a specific directory. I am trying to get all contents of subdirectory of the zipped file and not the parent directory. This is parent directory within zip ...
0
votes
1answer
37 views

7z commandline: test archive and only show failures?

What is the easiest way to get only the failures from 7z when testing an archive for integrity? Looking at the command-line options, there seems to be no verbose or non-verbose option (i.e. there ...
0
votes
1answer
86 views

How can I create a batch job (.bat) that zip a folder?

From 7zip I've downloaded their command line tool 7za.exe, and I have to following script: echo off cls set zip ="C:\7za.exe" set filename="%date%.backup.zip" set pathtobackup="C:\MyDocs" %zip% ...
2
votes
1answer
540 views

Command line 7Zip to extract file by specified result path

Is it possible to make 7Zip extract one file by name from archive to specified full path (including new filename)? I've found only: 7zip e <archive> -o<resultDirectory> <filemask> ...
1
vote
1answer
92 views

Command line 7Zip to create archive without extension

If I specify full extensionless result path 7zip adds one corresponding to the type of created archive. How can I make it name the result file exactly as I have specified in command line argument?
0
votes
1answer
425 views

How to show extraction progress of 7zip inside cmd?

7z.exe do not show any extraction progress in cmd."C:\Program Files\7-Zip\7zG.exe" -y x -pPASSWORD "D:\Myfile.rar" Extracts the file with a GUI progress-bar. But I don't want a GUI progress bar. I ...
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 ...
5
votes
1answer
159 views

How to exclude a folder in 7zip?

I want to compress the folder C:\Temp but without a specific subfolder (e.g. C:\Temp\test). How can I do that with 7zip? I've come up with the following command: c:\Temp>7zip a -t7z test.7z ...
0
votes
1answer
34 views

Is it possible to strip the extension before archiving?

I'm not sure about this, but is it possible to save files in an archive under a different name? I'm trying to do this as I'm currently using 7-zip as part of a batch file script to process a bunch of ...
3
votes
3answers
2k views

What does the percent sign (% and %%) in a batch file argument mean?

I think I'm missing something because I can't seem to find what this means. Example: for /D %%A in (*) do "\7za.exe" u -t7z -m9=LZMA2 "%%A.7z" "%%A" That line was supposed to use a command line ...
0
votes
1answer
105 views

7zip commandline equivalent of these gui settings?

I'm trying to compress an archive using the following GUI settings: 7z, Fastest, LZMA2, Dict 64KB, Word 32, solid block 8mb, cpu threads 8. "C:\Program Files\7-Zip\7z.exe" a -t7z ...
3
votes
1answer
2k views

7-zip - how to use command line to include/exclude large list of files

I'm (trying) to develop a program to operate the 7-zip console program (7z.exe) via ShellExecute() and passing it a computer-generated list of files. Now what I want to do is this : I want to pass ...
0
votes
1answer
264 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 ...
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 ...
0
votes
3answers
229 views

How to store complete path using 7z on linux

I am looking for a simple way to backup files that have changed in the last 24 hours and creating a daily 7zip file ( I don't need permssion or users just files ). Using the following command I can ...
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 ...
0
votes
1answer
67 views

Specify archive-to directory in 7z

I'm running 7z a from the command line and wish to specify the directory which the archive .7z file is to be in. I don't see, from the man page, a way to do this (and -o and -w don't do it). Is there ...
0
votes
1answer
358 views

Is it possible to recursively list zip file contents with 7 zip without extracting

Similar to this question I have a very large zip file which contains other zip files, folders, and files. I want to use 7-zip to extract a list of file names from it, recursing into subfolders and zip ...
0
votes
5answers
669 views

Automatically extracting text files via commandline and combining them into a single text file

In-Depth Explanation of Problem: I'm trying to automate a process on my computer and having some difficulty. Each day, I'm emailed a zip file that contains a txt file. I have a script in place that ...
1
vote
1answer
215 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 ...
0
votes
2answers
4k views

7-Zip not working from the DOS prompt or command line?

I have "7-Zip" installed and it works from Windows, but not from the DOS prompt or commandLine: 7z e max_logs_can_messages.tgz Yields: '7z' is not recognized as an internal or external command, ...
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 ...
4
votes
4answers
9k views

7-zip commandline How To archive with subdirectories? Or, how to KEEP folder structure while archiving

I have a bunch of files like this: C:\G\G1\35antique-shop.mp3 C:\G\G2\35antique-shop.mp3 C:\G\G1\09saguri.mp3 C:\G\G2\09saguri.mp3 edit1: I just wanna know how to KEEP folder structure while ...
3
votes
2answers
3k views

7zip command line options for more information when synchronizing

In the 7zip command line options, is there some argument that can make 7z output the files ignored/deleted from the archive too? (files ignored by the option -uq0) Example call: "C:\Program ...
1
vote
1answer
59 views

Let 7Zip install in same directory without subdirectory

When using 7Zip to extract a zip file, it always creates a subdirectory I want to avoid to create. The zip file: C:\Test.zip The content files in zip file: `ReadMe.txt` The Commandline: x ...
1
vote
2answers
1k views

Synchronizing files using 7zip and the CLI

In the command line, 7zip has the command 'a' to "Add files to archive". But I want to sync the files instead. This is one of the main options in the GUI, but the CLI has disregarded it for some ...
0
votes
1answer
433 views

How to rename and extract all file?

Looking for a .bat to rename and extract all. The folder is d:\EJ\%dd%-%mm%-%yyyy%\ (multiple files) K02699_ej.zip K02702_ej.zip K02703_ej.zip K02704_ej.zip K02705_ej.zip Rename to K02699.zip ...
4
votes
2answers
4k views

How to write error status for command line 7-zip in variable (or, instead, in text file)

I use 7-zip (in my batch files) to pack some directory and send archive by email. When I use some file in this directory at the same time the batch file is running (I start the batch files with Task ...
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
3k views

Extract and overwrite existing files

I am trying to write a batch script to extract files out of an existing zip file, into another folder on my desktop and to have the system not prompt me as to whether I want to overwrite the existing ...
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 ...
3
votes
1answer
4k views

Unzip .rar from command-line with 7-zip

On windows command-line I can extract archives like this: 7za e somefile.zip I know 7zip supports .rar in the gui but can it be done in commandline mode? Thanks
1
vote
2answers
503 views

Is there a way to determine the original size or file count of a 7-zip archive?

I know that when I compress an archive with the 7za utility, it gives me stats like the number of files processed and the amount of bytes processed (the original size of the data). Is it possible, ...
0
votes
1answer
479 views

Extracting file using 7-Zip is taking too much time

I am trying to extract a ZIP folder using 7-Zip from the command line: 7z x "%BackupFileDestination%" -o"%ExtractDestinationDir%" It is taking too much time to do so. It is even hanging on a few ...
3
votes
1answer
2k views

7-Zip command line to zip all the content of a folder (without zipping the folder itself) [duplicate]

Possible Duplicate: Create an archive from a directory without the directory name being added to the archive I have a folder that I want to zip completely: MyFolder | |--- ...
1
vote
0answers
901 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: ...
0
votes
2answers
4k views

Extract all Zip's in a directory (incl. subfolders) with a .bat file or dos command

I want to extract all .zip's and .rars in a folder and its children The structure is like this: MAIN_FOLDER -A folder - a.zip -a.rar -B folder - b.zip ...
2
votes
2answers
949 views

7zip to archive multiple files across many folders

I have a folder called lessons and 34 nested lessons in this folder course\ lesson1\updatedfile.html lesson2\updatedfile.html ... lesson34\updatedfile.html The lessons folder contains just the ...
6
votes
2answers
15k views

7-Zip command line to extract a folder from an archive

I'm using the 7-Zip commandline to extract a ZIP archive called abc.zip which is an archive with a folder called 'zipper' with three text files in it (a.txt, b.txt, and c.txt). My problem is when I ...
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 ...
0
votes
2answers
5k views

Installing 7zip in CentOS - succeeds; but can't use it

I am trying to install 7zip to CentOS yum install p7zip installed it. And now running this returns Package p7zip-9.20.1-2.el5.x86_64 already installed and latest version But [root@root ...
4
votes
2answers
31k views

7-Zip command line: Extract silently/quietly [duplicate]

Possible Duplicate: How to disable the output of 7-Zip? I want to use 7z.exe from a command prompt to silently/quietly extract an archive. I do not want to use third-party scripts or APIs. ...
4
votes
2answers
7k views

7zip: How to exclude files (not file types) using an exclude list file?

I know you can create a text file containing a list of files and then tell 7zip to reference this file so that it can exclude them from the archive, but I cannot find the syntax for that. Can someone ...
2
votes
1answer
6k views

Batch the “Extract Here” command

I would like to batch the "Extract Here..." command on a complete folder. Every type of archive should be unzipped into the current folder with the name of the archive file. I have found some BATCH ...
2
votes
2answers
4k views

Extract a certain file from an archive with 7-Zip from the command line

If I have an archive, for example, some.zip that contains one or more files, how can I extract only one file (I know the name of the file) with 7-Zip from the command line in Windows?
1
vote
2answers
4k views

How do I create seperate 7z files from each selected directory with 7zip command line?

FOR %i IN (*.*) DO 7z.exe a "%~ni.7z" "%i" Does the job for each selected file. However I've got tons of directories (with files inside them obviously) I need to pack. Say I have d:\dir1, d:\dir2, ...
4
votes
4answers
21k views

7-Zip CMD: Add current date to archive and include only the last modified folder in archive

I'm trying to create a backup script with 7-Zip. I have everything else done already, but these two issues are still blocking me. Firstly, I want to add a timestamp with a create date like this: ...
12
votes
1answer
8k views

How to create multipart 7zip file in Linux?

How can I create a multipart 7zip file in Linux using the p7zip console client? Many people referred me to it. My console app is 7-Zip [64] 9.13 beta Copyright (c) 1999-2010 Igor Pavlov ...
2
votes
2answers
1k views

Command line alternative to rar.exe with complex switches

I am searching for a command line alternative to rar.exe from winrar which supports the multitude of options that rar.exe does, preferably one that is open source. Specifically, I am searching for a ...