关于Winzip的参数?(200分)

  • 主题发起人 主题发起人 luciu
  • 开始时间 开始时间
L

luciu

Unregistered / Unconfirmed
GUEST, unregistred user!
我需要在程序中调用Winzip,但我不知到Winzip的参数是什麽。例如要将一个
文件夹temp压缩成a.zip该如何做。还有如何判断Winzip是否出错,它把文件
压缩后的文件名是什麽等信息?
 
用ZipTV控件吧! 你可以自己做一个WinZip出来,和他不相上下!
 
我想和pkzip应该是一样的吧.我也是建议你使ziptv
 
用dos的pkzip不就可以了???
 
Adding Files
The command format is:

winzip[32].exe [-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. These actions correspond to the actions described in the section titled "Adding files to an Archive" in the online manual.

options
-r and -p correspond to the "Recurse Directories" and "Save Extra Directory Info" checkboxes in the Add and Drop dialog boxes. -ex, -en, -ef, -es, and -e0 options 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 directory).

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:

winzip[32].exe -e [options] filename[.zip] directory
where:
-e
Is required.

options
-o and -j stand for "Overwrite existing files without prompting" and "Junk pathnames", respectively. Unless -j is specified, directory 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 directory).

directory
Is the name of the directory to which the files are extracted. If the directory does not exist it is created
 
http://www.winzip.com/wzcline.cgi
这里有, 不过还在测试中.
 
bethouvnlue:我试了一下,感到不太对,你能给我一个具体的实例吗?
 
实在对不起,的却不好使
我测试过,可能beta版是好使的
给你发了一个CommandLine add-on
没招了,试试它吧
 
接受答案了.
 
后退
顶部