Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using 7zip with this command

tools/7zip/7z.exe a publish/ publish/Site/*

When I do this, 7zip creates a zip file with a publish folder then a Site folder and then my files.

I'd like that the contents of my Site folder to be the root of my zip file.

How can I do that?

share|improve this question

Try these commands:

cd publish/Site
tools/7zip/7z.exe a *

It will navigate you to the dir you want to 7zip and then adds all the files in it.

share|improve this answer
I can't. I am running 7z from a script in another folder – VinTem May 10 '11 at 19:46
@VinTem just put the cd command in the script? Shouldn't be a problem! – BloodPhilia May 10 '11 at 19:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.