7-Zip CommondLine 使用记录
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                7-Zip CommondLine 使用记录
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                
                            
                            
                            下載:http://www.7-zip.org/zh-cn/download.html
這是一個使用命令壓縮和解壓文件的7-zip,從官方網站下載它的zip包,因為windowsXP/2003可以直接將zip視為特殊的文件夾,所以不用安裝winzip就可以打開,然后將里面的7za.exe文件拷貝到C:/windows/ 目錄下。這樣你就可以通過命令行在任一目錄下調用7-zip程序,解壓壓縮文件,就像在linux上使用tar。
在命令行中輸入7za,就會顯示7za的幫助:
7-Zip (A) 4.42 Copyright (c) 1999-2006 Igor Pavlov 2006-05-14
Usage: 7za [...] [...]
[]
a: Add files to archive
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
-scs{UTF-8 | WIN | DOS}: set charset for list files
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout
-t{Type}: Set type of archive
-v{Size}[b|k|m|g]: Create volumes
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-w[{path}]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries
所以,簡單的,可以使用:
A 將同目錄下的zip.zip文件解壓到tmp文件夾中.
7za e -o tmp temp.zip
B.將tmp添加到temp.7z壓縮包中.
7za a temp.7z tmp
C.將當前目錄的所有文件添加到temp.7z壓縮包中.
7z a -sfx temp.7z
D.自釋放程序制作
7z a -sfx temp.exe *.txt
(*)需要自釋放模塊支持 例如:7zCon.sfx
 
                        
                        
                        這是一個使用命令壓縮和解壓文件的7-zip,從官方網站下載它的zip包,因為windowsXP/2003可以直接將zip視為特殊的文件夾,所以不用安裝winzip就可以打開,然后將里面的7za.exe文件拷貝到C:/windows/ 目錄下。這樣你就可以通過命令行在任一目錄下調用7-zip程序,解壓壓縮文件,就像在linux上使用tar。
在命令行中輸入7za,就會顯示7za的幫助:
7-Zip (A) 4.42 Copyright (c) 1999-2006 Igor Pavlov 2006-05-14
Usage: 7za [...] [...]
[]
a: Add files to archive
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
-scs{UTF-8 | WIN | DOS}: set charset for list files
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout
-t{Type}: Set type of archive
-v{Size}[b|k|m|g]: Create volumes
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-w[{path}]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries
所以,簡單的,可以使用:
A 將同目錄下的zip.zip文件解壓到tmp文件夾中.
7za e -o tmp temp.zip
B.將tmp添加到temp.7z壓縮包中.
7za a temp.7z tmp
C.將當前目錄的所有文件添加到temp.7z壓縮包中.
7z a -sfx temp.7z
D.自釋放程序制作
7z a -sfx temp.exe *.txt
(*)需要自釋放模塊支持 例如:7zCon.sfx
轉載于:https://www.cnblogs.com/yoshow/archive/2007/10/23/935320.html
總結
以上是生活随笔為你收集整理的7-Zip CommondLine 使用记录的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: JavaScript AppendChi
- 下一篇: 图书馆可以借到的书目
