Multiple files in .cab file
Posted: 03 Dec 2014 06:41
Is it possible to add multiple files into .cab file with MAKECAB?
Thanks.
Saso
Thanks.
Saso
To compress multiple files into a single CAB file, use a directive file containing a list of the files to compress and package.
Code: Select all
;@echo off
;set "file_list="C:\file1";"c:\file2";"c:\file3""
;break>files
;for %%a in (%file_list%) do (
; echo %%a
;)>>files
;makecab /f "%~f0" /f files /v0 >nul
;exit /b 0
.Set DestinationDir=.
.Set DiskDirectory1=.
.Set CabinetNameTemplate=Destination.CAB
.Set Cabinet=on
.Set Compress=on