Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

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.

share|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
add comment

Your Answer

 
discard

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.