如何制作cab文件

如何制作cab文件,第1张

系统自带的MakeCAB.exe是微软提供的制作CAB的文件,详细的MakeCAB介绍请参考微软MSDN

直接运行MakeCAB,系统给出命令用法如下:

C:Documents and SettingsSunDesktopwebsipp>makecab

Microsoft (R) Cabinet Maker - Version 5.1.2600.2180

Copyright (c) Microsoft Corporation. All rights reserved..

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

MAKECAB [/V[n]] [/D var=value ...] /F directive_file [...]

source File to compress.

destinationFile 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).

/D var=value Defines variable with specified value.

/L dir Location to place destination (default is current directory).

/V[n] Verbosity level (1..3).

如果目录里面有多个文件,那么就需要编写一个文件列表文件,用来告诉MakeCAB,有多少文件需要打包。

简单的编写了一个list.txt文件,里面仅仅包含2行。一个是libactivex.inf,一个libactivex.dll

然后执行:

makecab /F list.txt /D compressiontype=lzx /D compressionmemory=21 /V

用法:

 makecab 文件完整的名称

如 makecab wmd.dll

指定压缩类型及使用内存的大小:

 makecab /d compressiontype=lzx /d compressionmemory=21 wmd.dll 压缩比高

批量压缩的办法:

 for %v in (*.*) do makecab %v

目录里多个文件时,需要一个文件列表文件,用来告诉MakeCAB,有多少文件需要打包(这是仅包含2行,一个是libactivex.inf,一个libactivex.dll)

例一:makecab /F list.txt /D compressiontype=lzx /D compressionmemory=21 /V

 

例二:type list.txt (生成一个文件列表)

 makecab /f list.txt /d compressiontype=mszip /d compressionmemory=21 /d maxdisksize=1024000000 /d diskdirectorytemplate=dd* /d cabinetnametemplate=dd*.cab

 来个高压缩比的

 makecab /f list.txt /d compressiontype=lzx /d compressionmemory=21 /d maxdisksize=1024000000 /d diskdirectorytemplate=dd* /d cabinetnametemplate=dd*.cab

生成文件列表

1.假设文件夹为D:\123。

3.dir d:\123 >c:\filelist.txt

这样就在C:盘根目录下生成了一个名为“filelist.txt”的文本文件,该文件中即包含文件夹D:\123 里面的所有文件的详细列表。

如果希望将D:盘中子目录中的文件和文件夹列表也全部列出来,可以在命令提示符窗口中输入以下命令。

dir d:\ /s >c:\filelist.txt

如果使用下面的命令,即加一个/b,则会生成一个简单的文件名列表,不包括其它信息,这种方法可能更加实用一些。

dir d:\ /s /b >c:\filelist.txt

想把电脑里的机战V原唱音乐.cab文件考到psv的机战V里替换声音.cab文件实现原唱音乐加载?

求助,最近想玩psv,想把电脑里的机战V和机战X的原唱音乐.cab文件考到psv的机战V和X里替换声音.cab文件实现原唱音乐加载,哪位大神可以帮个忙实现吗?

展开

音乐制作 电脑 PlayStation Vita 音乐 制作

可以。这些是DirectX相关的组件包,成功安装后,它们里面的文件就会被释放到系统的System32目录中。visual~1.cab可以删除,所以这些cab文件可以删除。不影响系统的。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/12077057.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-20
下一篇 2023-05-20

发表评论

登录后才能评论

评论列表(0条)

保存