Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9128

Batch how to compress an .zip folder without root folder

$
0
0

I'm trying to compress multiple separate folders to .zip (whether it be 7zip or PowerShell or tar)yes I looked at other posts but none of them is the answer to what I'm trying to do (if its even possible)

mainfolder is where the .bat is

before compression

mainfolder | folder1 | folder .txt .json .png

this is what I want after compression

mainfolder | folder1.zip | folder .txt .json .png

but what I get is

mainfolder | folder1.zip | folder1 | folder .txt .json .png

I don't what the folder1 in the .zip

so is it possible to zip it without that other folder?


Viewing all articles
Browse latest Browse all 9128

Trending Articles