日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

7-Zip CommondLine 使用记录

發布時間:2023/12/31 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

轉載于:https://www.cnblogs.com/yoshow/archive/2007/10/23/935320.html

總結

以上是生活随笔為你收集整理的7-Zip CommondLine 使用记录的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。