我试图将部分文件夹结构保留在 .cab 文件中。任何人都知道制作它的正确方法是什么?例如,
我要制作my.cab,在my.cab:kb_32\filtr.Inf,和filtr.sys
但我只能获取 my.cab(解压缩并查看 C_\Users\EK\Desktop\dr\pcab\kb_32\filtr.inf 和 filtr.sys)
.OPTION EXPLICIT ; Generate errors
.Set CabinetFileCountThreshold=0;
.Set FolderFileCountThreshold=0;
.Set FolderSizeThreshold=0;
.Set MaxCabinetSize=0;
.Set MaxDiskFileCount=0;
.Set MaxDiskSize=0;
.Set CompressionType=MSZIP;
.Set Cabinet=on;
.Set Compress=on;
; Specify file name for new cab file;
.Set CabinetNameTemplate=kb.cab;
; Specify the subdirectory for the files.
; Your cab file should not have files at the root level,
; and each driver package must be in a separate subfolder.
.Set DestinationDir=C:\Users\EK\Desktop\dr\pcab;
; Specify files to be included in cab file;
C:\Users\EK\Desktop\dr\pcab\kb_32\filtr.Inf;
C:\Users\EK\Desktop\dr\pcab\kb_32\filtr.sys;
(请注意, ; 仅在此处添加行尾,以使其看起来像发布我的问题的正确代码格式。对不起,我缺乏在这里编辑代码的经验。)
非常感谢!LJ