Page 1 of 1

Multiple files in .cab file

Posted: 03 Dec 2014 06:41
by miskox
Is it possible to add multiple files into .cab file with MAKECAB?

Thanks.
Saso

Re: Multiple files in .cab file

Posted: 03 Dec 2014 07:21
by Xboxer

Re: Multiple files in .cab file

Posted: 03 Dec 2014 07:35
by Squashman
To compress multiple files into a single CAB file, use a directive file containing a list of the files to compress and package.

http://ss64.com/nt/makecab.html

Re: Multiple files in .cab file

Posted: 03 Dec 2014 07:38
by npocmaka_

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


this will create Destination.CAB file with the files listed in file_list

Re: Multiple files in .cab file

Posted: 03 Dec 2014 10:17
by miskox
Thanks!

Saso