Menu

How to pack files into a ZIP file which have same name - folder + file - in batch

Greg
2022-11-16
2022-11-19
  • Greg

    Greg - 2022-11-16

    Here is an example for one file:

    x:\video1\ - folder with content
    x:\video1.txt - file with description for folder video1
    x:\video22\ - folder with content
    x:\video22.txt - file with description for folder video22
    x:\video300\ - folder with content
    x:\video300.txt - file with description for folder video22

    I want to pack each folder
    x:\video1\ - folder with content
    x:\video1.txt - file with description for folder video1
    to one file video1.zip with folder and file inside

    I have got 200 folders and 200 txt files already properly renamed**

    I know how to pack folders in a batch but this is not my question
    I need a pack folder + file all togheter and automate this process for 200 files and folders

     
  • mdadm

    mdadm - 2022-11-19

    This is in bash console, similar would be in win cmd:

    for d in */ ; do 7z a -mx9 video.7z * ; done

     

Log in to post a comment.