Sunday, October 7, 2007

How to use 7-Zip on command line prompt.


After installing 7-Zip, Copy C:\Program Files\7-Zip\7z.exe to C:\WINDOWS\system32.
Then you can use 7-Zip on your console as below,


Related post: 7-Zip Free file archiver with High compression ratio

9 comments:

Jay R. Wren said...

how about a REAL example.

using -xFNAME or -x:FNAME to exclude does NOT WORK!

Anonymous said...

I agree-- this is kind of useless. I found a very good reference of the command-line syntax here:

http://prudentialscatterbrain.hp.infoseek.co.jp/7z-4.20_MANUAL/syntax.htm

gidaeyeo (gidaeyeo@gmail.com) said...

Thank you for giving information. :) I used it when I made a plug-in of FireFox. Anyway, Thanks a lot.!!

Anonymous said...

i need to delete a files after compression- is it imposible in 7zip command line?

Anonymous said...

A simple example -
C:\>7z x -oF:\unzipped "F:\zip\table.dmp.Z"

Here unzipped is the target locn, F:\zip\table.dmp.Z is the source compressed file.

Alex said...

In this difficult situation I advise to use one nice tool-zip file larger than 2gb,which helped my familiar and me not once,program has many capacibilities and also software is free as far as I can see,it can save a lot of free space on hard drives and removable media,also split files, it is used, when forwarding large files by email,can work with all Windows family, from Windows 98 to Windows Vista,program for extracting zip files 2gb Microsoft,allows choosing only those files, that can be successfully repaired,save extracted documents to your hard drive and finish the process,can extract your documents from corrupted Zip files.

Anonymous said...

As for me I wasn't in like conditions,but familiars had similar problems,and they used-zip file is damaged.As they said tool is quite reliable and has free status,in addition it repair damage zip file uses several intellectual algorithms to extract your data and compare the results.

Mitch said...

Recursively extract a single file, or selective set of files from an archive into current folder:
7za.exe e art.archive -ir!*Art.jpg

Alex said...

Exist some interesting tools for solving problems. But one day I had very compound problem and used one application which assisted me easily and above it can help in different issues as well - the winzip wizard cannot open this file; it does not appear to be a valid archive.