導航:首頁 > 程序命令 > zip打包命令

zip打包命令

發布時間:2022-01-14 03:09:57

『壹』 如何用dos命令將檔壓縮成ZIP

那你安WINRAR或者WINZIP,我的機器上沒有7Z,無法為你測試,我的批處理程序調用WINRAR進行數據壓縮備份的語句如下,你可以參考:

e:
cd e:\mysql5.0.51a\data
del d:\backup\www\web.rar
"C:\Program Files\WinRAR\Rar.exe" a -m5 -s d:\backup\www\web.rar web

『貳』 怎麼用winrar命令行壓縮zip文件

WINRAR比較新的版本,命令行直接支持zip文件的。例子如下
壓縮一個目錄(壓縮two這個目錄)
winrar.exe
a
c:\one\two.zip
c:\one\two
壓縮一個文件(壓縮three.bmp這個文件)
winrar.exe
a
c:\one\two\three.zip
c:\one\two\three.bmp
如果命令執行不了,嘗試把開頭的winrar.exe前面加上完整路徑,例如"c:\Program
Files\WinRAR\winrar.exe

『叄』 winzip命令行打包文件夾,要加什麼參數,才能不包含文件夾的路徑到zip中

應該不直接支持你說的功能,間接的辦法是list一個文件表。不過你文件多了話還是沒辦法。你可以看網上的教程。

What command line parameters does WinZip support?

Below is some information about the undocumented command line options for using the WinZip program mole, winzip32.exe.

WinZip supports command line options to add and extract from files. Be sure to read the Notes section below for additional important information.
Adding Files

The command format is:

winzip32 [-min] action [options] filename[.zip] files

where:

-min specifies that WinZip should run minimized. If -min is specified, it must be the first command line parameter.

action
-a for add, -f for freshen, -u for update, and -m for move. You must specify one (and only one) of these actions. The actions correspond to the actions described in the section titled "Add dialog box options" in the online manual.

options
-r corresponds to the Include subfolders checkbox in the Add dialog and causes WinZip to add files from subfolders. Folder information is stored for files added from subfolders. If you add -p, WinZip will store folder information for all files added, not just for files from subfolders; the folder information will begin with the folder specified on the command line.

-ex, -en, -ef, -es, and -e0 determine the compression method: eXtra, Normal, Fast, Super fast, and no compression. The default is "Normal". -hs includes hidden and system files. Use -sPassword to specify a case-sensitive password. The password can be enclosed in quotes, for example, -s"Secret Password".

filename.zip
Specifies the name of the Zip file involved. Be sure to use the full filename (including the folder).

files
Is a list of one or more files, or the @ character followed by the filename containing a list of files to add, one filename per line. Wildcards (e.g. *.bak) are allowed.
Extracting Files

The command format is:

winzip32 -e [options] filename[.zip] folder

where -e is required.

options
-o and -j stand for "Overwrite existing files without prompting" and "Junk pathnames", respectively. Unless -j is specified, folder information is used. Use -sPassword to specify a case-sensitive password. The password can be enclosed in quotes, for example, -s"Secret Password".

filename.zip
Specifies the name of the Zip file involved. Be sure to specify the full filename (including the folder).

folder
Is the name of the folder to which the files are extracted. If the folder does not exist it is created.

Notes

* VERY IMPORTANT: always specify complete filenames, including the full folder name and drive letter, for all file IDs.

* To run WinZip in a minimized inactive icon use the "-min" option. When specified this option must be the first option.

* Only operations involving the built-in zip and unzip are supported.

* Enclose long filenames in quotes.

* When using a list ("@") file, no leading or trailing spaces should appear in file IDs in the list.

* The action and each option must be separated by at least one space.

* WinZip can be used to compress files with cc:Mail . Change the compress= line in the [cc:Mail] section of the appropriate WMAIL.INI files to specify the full path for WinZip followed by "-a %1 @%2". For example, if WinZip is installed in your c:\winzip folder, specify

compress=c:\winzip\winzip.exe -a %1 @%2

『肆』 linux zip壓縮。壓縮當前文件夾下所有文件,壓縮為a.zip。命令行的方法是怎樣。

linux zip壓縮。壓縮當前文件夾下所有文件,壓縮為a.zip。可以使用命令zip -r mydata.zip dir。例如:

要壓縮/home/data這個目錄,則壓縮命令為zip -q -r mydata.zip /home/data;

如果現在在/home 這個目錄下,則命令是zip -q -r data.zip data;

如果在/home/data 這個目錄下,則命令是zip -q -r data.zip * 。

(4)zip打包命令擴展閱讀

linux zip壓縮命令主要參數介紹:

1、-c:將解壓縮的結果。

2、-l:顯示壓縮文件內所包含的文件。

3、-p:與-c參數類似,會將解壓縮的結果顯示到屏幕上,但不會執行任何的轉換。

4、-t:檢查壓縮文件是否正確。

5、-u:與-f參數類似,但是除了更新現有的文件外,也會將壓縮文件中的其它文件解壓縮到目錄中。

6、-v:執行是時顯示詳細的信息。

7、-z:僅顯示壓縮文件的備注文字。

8、-a:對文本文件進行必要的字元轉換。

9、-b:不要對文本文件進行字元轉換。

10、-C:壓縮文件中的文件名稱區分大小寫。

『伍』 如何在Windows平台實現zip壓縮命令

操作步驟如下:
1、打開winrar的安裝文件夾,復制rar.exe到c:\windows文件夾下;
2、點擊開始,點擊運行,輸入cmd,點擊確定;
3、提示符後輸入rar 1.zip c:\lizi,回車,該命令是將c:\lizi文件夾壓縮為1.zip。

『陸』 如何用bat命令把當前目錄的所有文件和文件夾打包為一個zip

@echooff&title打包當前目錄By依夢琴瑤

setWinRAR_Dir=%ProgramFiles%WinRAR

setPATH=%PATH%;%WinRAR_Dir%

WinRAR.exea-r"當前目錄備份.zip"-rr-m5*-ibck
pause

『柒』 linux zip 壓縮命令 解壓命令 unzip

linux
zip命令的基本用法是:
zip
[參數]
[打包後的文件名]
[打包的目錄路徑]
linux
zip命令參數列表:
-a
將文件轉成ASCII模式
-F
嘗試修復損壞的壓縮文件
-h
顯示幫助界面
-m
將文件壓縮之後,刪除源文件
-n
特定字元串
不壓縮具有特定字尾字元串的文件
-o
將壓縮文件內的所有文件的最新變動時間設為壓縮時候的時間
-q
安靜模式,在壓縮的時候不顯示指令的執行過程
-r
將指定的目錄下的所有子目錄以及文件一起處理
-t
日期
把壓縮文件的最後修改日期設為指定的日期,日期格式為mmddyyyy
舉例:
將/home/Blinux/html/
這個目錄下所有文件和文件夾打包為當前目錄下的html.zip
zip
–q
–r
html.zip
/home/Blinux/html
上面的命令操作是將絕對地址的文件及文件夾進行壓縮.以下給出壓縮相對路徑目錄
比如目前在Bliux

『捌』 怎麼把文件壓縮打包成Zip文件

把文件壓縮打包成Zip文件,可以使用winrar壓縮軟體進行壓縮。

方法步驟如下:

1、使用網路搜索「winrar」點擊「立即下載」下載好「winrar」安裝包。

『玖』 求助!怎麼用zip命令行添加文件到壓縮包內的文件夾里

zip -m b.zip/aaa/bbb/ccc a.txt
參考:http://www.php100.com/html/webkaifa/Linux/2009/1213/3652.html (我最喜歡的網站之一)

『拾』 linux下將整個文件夾打包成zip該用什麼命令

zip -r /usr/abc.zip

其中 -r 是為了將你的目錄全部循環一遍 如果是單個文件就可以不加
另外如果要指定zip到哪裡可以在後面加路徑 空格 然後加上路徑就好

閱讀全文

與zip打包命令相關的資料

熱點內容
安卓系統l1是什麼意思 瀏覽:21
伺服器一直崩應該用什麼指令 瀏覽:916
cm202貼片機編程 瀏覽:724
php構造函數帶參數 瀏覽:175
解壓電波歌曲大全 瀏覽:336
為啥文件夾移到桌面成word了 瀏覽:858
命令符的安全模式是哪個鍵 瀏覽:758
編程中學 瀏覽:956
單片機求助 瀏覽:993
ug加工側面排銑毛坯怎麼編程 瀏覽:271
程序員有關的介紹 瀏覽:736
支付寶使用的什麼伺服器 瀏覽:210
安卓看本地書用什麼軟體好 瀏覽:921
經傳軟體滾動凈利潤指標源碼 瀏覽:522
螢石雲視頻已加密怎麼解除 瀏覽:574
一命令四要求五建議 瀏覽:30
qq文件夾遷移不了 瀏覽:19
液體粘滯系數測定不確定度演算法 瀏覽:332
輕棧源碼 瀏覽:426
把圖片壓縮到500k 瀏覽:35