




287,395bytesin2files
Totalfiles: 2
Bytesbefore: 287,395
Bytesafter: 162,170
After/Before: 56.43%compression
Time: 0.74seconds(0hr0min0.74sec)
Throughput: 378.76Kb/second
压缩之后,目录下将生成一个目录,将目录里面的文件改名成libactivex.cab(可以是你需要的文件名)就OK了。
然后就可以放到WEB服务器的目录下,IE打开的时候就会提示下载了。万象息屏软件下载-万象息屏最新版1.0.5 安卓版
MakeCAB是微软提供的制作CAB的文件,详细的MakeCAB介绍请参考微软MSDN。
正好这几天做的一个WEBActiveXSIPPhone需要打包成.CAB文件,于是稍微研究了一下MakeCAB的用法。
直接运行MakeCAB,系统给出命令用法如下:
C:DocumentsandSettingsSunDesktopwebsipp>makecab
Microsoft(R)CabinetMaker-Version5.1.2600.2180
Copyright(c)MicrosoftCorporation.Allrightsreserved..
source Filetocompress.
destination Filenametogivecompressedfile.Ifomitted,the
lastcharacterofthesourcefilenameisreplaced
withanunderscore(_)andusedasthedestination.
/FdirectivesAfilewithMakeCABdirectives(mayberepeated).
/Dvar=value Definesvariablewithspecifiedvalue.
/Ldir Locationtoplacedestination(defaultiscurrentdirectory).
/V[n] Verbositylevel(1..3).
如果目录里面有多个文件,那么就需要编写一个文件列表文件,用来告诉MakeCAB,有多少文件需要打包。
简单的编写了一个list.txt文件,里面仅仅包含2行。一个是libactivex.inf,一个libactivex.dll
然后执行:
makecab/Flist.txt/Dcompressiontype=lzx/Dcompressionmemory=21/V
系统将显示压缩过程和压缩结果,如下:
Microsoft(R)CabinetMaker-Version5.1.2600.2180
Copyright(c)MicrosoftCorporation.Allrightsreserved..
MAKECAB[/V[n]][/Dvar=value...][/Ldir]source[destination]
MAKECAB[/V[n]][/Dvar=value...]/Fdirective_file[...]
热门评论
最新评论