How to add files to specified folder in archive with 7zip command line
up vote
5
down vote
favorite
I have folders and files on my disk
C:buildsmain.exe
D:componentsatesta.exe
D:componentsbtestb.exe
D:componentsctestc.exe
D:dependenciesabc.dll
Can I create an archive with 7z command line version with folder structure similar to this?
MyArchive.7z
|- main.exe
|- abc.dll
|- componentstesta.exe
|- componentstestb.exe
|- componentstestc.exe
windows-7 command-line archiving 7-zip
add a comment |
up vote
5
down vote
favorite
I have folders and files on my disk
C:buildsmain.exe
D:componentsatesta.exe
D:componentsbtestb.exe
D:componentsctestc.exe
D:dependenciesabc.dll
Can I create an archive with 7z command line version with folder structure similar to this?
MyArchive.7z
|- main.exe
|- abc.dll
|- componentstesta.exe
|- componentstestb.exe
|- componentstestc.exe
windows-7 command-line archiving 7-zip
add a comment |
up vote
5
down vote
favorite
up vote
5
down vote
favorite
I have folders and files on my disk
C:buildsmain.exe
D:componentsatesta.exe
D:componentsbtestb.exe
D:componentsctestc.exe
D:dependenciesabc.dll
Can I create an archive with 7z command line version with folder structure similar to this?
MyArchive.7z
|- main.exe
|- abc.dll
|- componentstesta.exe
|- componentstestb.exe
|- componentstestc.exe
windows-7 command-line archiving 7-zip
I have folders and files on my disk
C:buildsmain.exe
D:componentsatesta.exe
D:componentsbtestb.exe
D:componentsctestc.exe
D:dependenciesabc.dll
Can I create an archive with 7z command line version with folder structure similar to this?
MyArchive.7z
|- main.exe
|- abc.dll
|- componentstesta.exe
|- componentstestb.exe
|- componentstestc.exe
windows-7 command-line archiving 7-zip
windows-7 command-line archiving 7-zip
edited Dec 5 '11 at 10:57
Siim K
5,81463964
5,81463964
asked Dec 5 '11 at 8:39
Peter PAD
12426
12426
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Reading this
You would need to create a batch/script file containing something like this:
7z a: -r -t7z MyArchive.7z C:buildsmain.exe D:componentsatesta.exe D:componentsbtestb.exe D:componentsctestc.exe D:dependenciesabc.dll
Commands are as follows - a: to add to archive, -r to make recursive, -t7z .7z archive file type.
Note: this is untested.
I got compnentsatesta.exe instead of componentstesta.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
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Reading this
You would need to create a batch/script file containing something like this:
7z a: -r -t7z MyArchive.7z C:buildsmain.exe D:componentsatesta.exe D:componentsbtestb.exe D:componentsctestc.exe D:dependenciesabc.dll
Commands are as follows - a: to add to archive, -r to make recursive, -t7z .7z archive file type.
Note: this is untested.
I got compnentsatesta.exe instead of componentstesta.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
add a comment |
up vote
0
down vote
Reading this
You would need to create a batch/script file containing something like this:
7z a: -r -t7z MyArchive.7z C:buildsmain.exe D:componentsatesta.exe D:componentsbtestb.exe D:componentsctestc.exe D:dependenciesabc.dll
Commands are as follows - a: to add to archive, -r to make recursive, -t7z .7z archive file type.
Note: this is untested.
I got compnentsatesta.exe instead of componentstesta.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
add a comment |
up vote
0
down vote
up vote
0
down vote
Reading this
You would need to create a batch/script file containing something like this:
7z a: -r -t7z MyArchive.7z C:buildsmain.exe D:componentsatesta.exe D:componentsbtestb.exe D:componentsctestc.exe D:dependenciesabc.dll
Commands are as follows - a: to add to archive, -r to make recursive, -t7z .7z archive file type.
Note: this is untested.
Reading this
You would need to create a batch/script file containing something like this:
7z a: -r -t7z MyArchive.7z C:buildsmain.exe D:componentsatesta.exe D:componentsbtestb.exe D:componentsctestc.exe D:dependenciesabc.dll
Commands are as follows - a: to add to archive, -r to make recursive, -t7z .7z archive file type.
Note: this is untested.
edited Jan 10 '13 at 19:27
Sathya♦
52.4k29153252
52.4k29153252
answered Dec 5 '11 at 12:11
HaydnWVN
3,07931844
3,07931844
I got compnentsatesta.exe instead of componentstesta.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
add a comment |
I got compnentsatesta.exe instead of componentstesta.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
I got compnentsatesta.exe instead of componentstesta.exe, guy
– Peter PAD
Dec 6 '11 at 0:50
I got compnentsatesta.exe instead of componentstesta.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
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
Any update on this Peter PAD? Fixed? Tested?
– HaydnWVN
Jan 11 '13 at 13:52
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f364724%2fhow-to-add-files-to-specified-folder-in-archive-with-7zip-command-line%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown