Exclude root folder from batch zip

  7zip, batch-file, powershell, shell, windows

i want to batch zip files without the root folder.

I have a structure like this

- root-folder
-- directory
-- file
-- file
-- directory

I want to have a zip file containing only the sub files and directorys

- Zip File
-- directory
-- file
-- file
-- directory

Currently im getting:

- Zip File   
-- root-folder
--- directory
--- file
--- file
--- directory

Im using following batch script:

for /d %%X in (*Pictures) do "C:Program Files-Zipz.exe" a "Pictures-EN.zip" "%%X"

Source: Windows Questions

LEAVE A COMMENT