I am using 7zip with this command

tools/7zip/7z.exe a publish/Site.zip 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?

link|improve this question
feedback

1 Answer

Try these commands:

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

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

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

Your Answer

 
or
required, but never shown

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