导航:首页 > 程序命令 > 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打包命令相关的资料

热点内容
listsortjava 浏览:180
plc闪光电路编程实例 浏览:297
socket编程试题 浏览:201
华为的服务器怎么设置从光驱启动 浏览:867
程序员真的累吗 浏览:323
学信网app为什么刷脸不了 浏览:871
天蝎vs程序员 浏览:991
单片机下载口叫什么 浏览:186
程序员的道 浏览:924
云服务器不实名违法吗 浏览:556
怎样查看文件夹图片是否重复 浏览:993
文件怎么导成pdf文件 浏览:806
打开sql表的命令 浏览:101
安卓手机如何面部支付 浏览:37
天元数学app为什么登录不上去 浏览:823
明日之后为什么有些服务器是四个字 浏览:104
安卓系统l1是什么意思 浏览:25
服务器一直崩应该用什么指令 浏览:924
cm202贴片机编程 浏览:729
php构造函数带参数 浏览:179