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
link|improve this question
feedback

1 Answer

Reading this (i got from a simple google search)

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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