设为首页 | 网站公告 | 网站地图 | 联系我们 加入收藏
| 网站首页 | 技巧文摘 | 电脑书库 | 媒体教程 | P2P资源区 | 在线留言 | 学习资源社区 |
会员登录
 
热门电脑教程
推荐电脑教程
您现在的位置: 计算机应用技巧资讯站 > 技巧文摘 > 操作系统 > Windows Vista > 文章正文
Windows Vista自带的压缩工具应用?
来源:本站原创  阅读次数:  更新日期:2007-9-27
Windows Vista系统自带了很多丰富使用的命令行工具,今天我们就来介绍一下makecab工具,从它的名字就可以看出是制作cab压缩文件的工具,cab压缩格式由微软公司设计,Windows Vista、XP系统的安装程序就是采用的cab压缩格式,压缩比例不比RAR、ZIP格式低。

我们在Vista开始菜单中输入cmd回车,输入makecab e:\windows\notepad.exe d:\notepad.cab 。意思就是压缩e盘上windows vista自带的记事本程序,保存到磁盘分区d根目录中,我们可以看到Windows Vista记事本原始文件大小为 148 KB,在磁盘分区D上,我们可以看到压缩后的notepad.cab 文件大小为 112 KB,从结果看到我们只减少 148-112=36 KB,这是因为我们使用的是makecab默认的压缩算法。我们输入makecab /?查看它的参数如下

   C:\Users\用户名>makecab /?
   Cabinet Maker - Lossless Data Compression Tool

   MAKECAB [/V[n]] [/D var=value ...] [/L dir] source [destination]
   MAKECAB [/V[n]] [/D var=value ...] /F directive_file [...]

   source File to compress.
   destination File name to give compressed file. If omitted, the
   last character of the source file name is replaced
   with an underscore (_) and used as the destination.
   /F directives A file with MakeCAB directives (may be repeated). Refer to
   Microsoft Cabinet SDK for information on directive_file.
   /D var=value Defines variable with specified value.
   /L dir Location to place destination (default is current directory).
   /V[n] Verbosity level (1..3).

这里我们可以使用compressiontype=lzx参数,采用LZX算法或 compressiontype=mszip 采用ZIP算法。最后我们来说一下cab格式文件的解压缩,使用extract命令可以解压缩cab格式文件,这里我们输入extract d:\notepad.cab d:\notepad.exe 即可还原到exe原始文件
加入收藏】【告诉好友】【打印此文】【关闭窗口
上一篇教程  
下一篇教程  
 
网友评论:(评论内容只代表网友观点,与本站立场无关!)
 姓 名:
 评 分: 1分 2分 3分 4分 5分
 内 容:
计算机应用技巧资讯站 版权所有 粤ICP备05000897号  
Copyright © 2006 www.00083.com Inc. All rights reserved.
软件技术交流群:5895132 硬件技术交流群:19441759 QQ书籍交流群#1:15823216 QQ书籍交流群#2:18211070