makecab - create a cab file from all the files in a folder

前端 未结 2 806
你的背包
你的背包 2020-12-24 07:40

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\\         


        
2条回答
  •  青春惊慌失措
    2020-12-24 08:13

    /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

提交回复
热议问题