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 have folders and files on my disk

C:\builds\main.exe
D:\components\a\testa.exe
D:\components\b\testb.exe
D:\components\c\testc.exe
D:\dependencies\abc.dll

Can I create an archive with 7z command line version with folder structure similar to this?

MyArchive.7z
 |- main.exe
 |- abc.dll
 |- components\testa.exe
 |- components\testb.exe
 |- components\testc.exe
share|improve this question

1 Answer 1

Reading this

You would need to create a batch/script file containing something like this:

7z a: -r -t7z MyArchive.7z C:\builds\main.exe D:\components\a\testa.exe D:\components\b\testb.exe D:\components\c\testc.exe D:\dependencies\abc.dll

Commands are as follows - a: to add to archive, -r to make recursive, -t7z .7z archive file type.

Note: this is untested.

share|improve this answer
    
I got compnents\a\testa.exe instead of components\testa.exe, guy –  Peter PAD Dec 6 '11 at 0:50
    
Then ammend it to suit, does it work? If you can't figure out how to do that yourself then you're on the wrong website. Suggest reading the software FAQ and help files. –  HaydnWVN Dec 6 '11 at 11:09
    
Any update on this Peter PAD? Fixed? Tested? –  HaydnWVN Jan 11 '13 at 13:52

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.