Batch file script to zip files

后端 未结 7 1436
夕颜
夕颜 2020-12-09 03:22

i have a folder structure in this pattern. I\'ve just shown two sub directories and 2 files in each but generally I have n number of subdirectories at a single level and sin

7条回答
  •  抹茶落季
    2020-12-09 04:04

    for /d %%a in (*) do (ECHO zip -r -p "%%~na.zip" ".\%%a\*")
    

    should work from within a batch.

    Note that I've included an ECHO to simply SHOW the command that is proposed. You'd need to remove the ECHO keywor to EXECUTE the commands.

提交回复
热议问题