0
votes
1answer
85 views

Command line - Some questions

I've created a batch file for zipping selected items in a folder. (The file is placed in 'Send to'). If I use the following code: for %%* in (.) do set CurrentFolder=%%~n* "C:\Program ...
1
vote
1answer
33 views

Quickly Maintain Database of sha256sums? [closed]

I have many different disks (primarily harddisks) storing various files. I want to know that they are all backed up in some form. Given that I have terabytes of files somehow (backups of backups ...
0
votes
1answer
199 views

How to unrar the STDIN?

What I have tried: cat archive.rar | unrar x - cat archive.rar | unrar x /dev/stdin cat archive.rar | 7z x - cat archive.rar | 7z x -si cat archive.rar | 7z l -si The unrar doesn't recognise the - ...
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
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
174 views

How to batch extract from archive using tar to directories

I m trying to extract files contained within a directory in a tar.gz file. The extract I m using is tar zxvf foo.tar.gz. It extracts the files from the archive but removes them from the directory they ...
1
vote
1answer
362 views

Batch script for archiving

I need to set up an archiving task on Windows 7 using Windows command line and WinRAR (or some other similar program). I want to create a script that does this, but I have no prior experience. I want ...
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
323 views

Commandline program to extract archives with automatic subdirectry detection

What I'm looking for is essentially the pure commandline counterpart to ark -ba <path> (on KDE), or file-roller -h <path> (on GNOME/Unity). Unfortunately, both ark and file-roller require ...
1
vote
2answers
597 views

WinRar Command to Compress(Zip) Every File in Folder with Another File

I have a text file that I want to be archived with each file in a particular folder. For example, the folder has: File1,File2,File3,TextDoc1` I want File1.zip (which includes File1+TextDoc1), ...
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.
0
votes
5answers
3k views

Zip multiple folders indvidually, automatically

I have folders full of photos within category folders eg holidays spain france italy family son daugher christmas 2010 2011 ... except much longer ... there are about 100 folders. I need ...
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
2answers
5k 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
2answers
273 views

Unix/Linux program that can handle all popular compression/archiving formats (e.g.tar, gzip, bzip2, zip)?

I sometimes get confused by the varying command line options I need to run common Unix archiving and compression software (e.g. gzip, bzip2, zip, tar). Is there a program out there that can just Do ...
8
votes
3answers
4k views

Universal command line unarchiving tool on a Mac

Is there some command line tool which allows extracting files from most known archive types? Something like StuffIt Expander, but without gui.
4
votes
3answers
2k views

how do I use tar -C on Snow Leopard when creating an archive?

The man page states -C directory In c and r mode, this changes the directory before adding the following files. However, tar does not change to the directory I specify, but instead reports ...
2
votes
4answers
417 views

Free command line archivers [closed]

Nowadays, we have a plethora of free arhivers (7-zip, j-zip, winrar <-- okey, that one's not free, ...) But does anyone know of some free command line archivers for popular formats (RAR, ZIP or ...