5

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

1 Answer 1

-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.

3
  • I got compnents\a\testa.exe instead of components\testa.exe, guy
    – Peter PAD
    Commented Dec 6, 2011 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
    Commented Dec 6, 2011 at 11:09
  • Any update on this Peter PAD? Fixed? Tested?
    – HaydnWVN
    Commented Jan 11, 2013 at 13:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .