I have bunch of files in a directory. I tried following makecab but it does not include all the files in a folder into the cab file.
makecab /d \"C:\\Users\\
/d switch cannot be used for files:
@echo off dir /s /b /a-d >files.txt makecab /d "CabinetName1=test.cab" /f files.txt del /q /f files.txt
More info
EDIT here can be found a script that preserves the whole directory structure