FG
💻 Software

How to add files to specified folder in archive with 7zip command line

Fresh7 days ago
Mar 15, 20266441 views
Confidence Score0%
0%

Problem

I have folders and files on my disk Can I create an archive with 7z command line version with folder structure similar to this?

Error Output

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

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to add files to specified folder in archive with 7zip command line

Low Risk

Reading this You would need to create a batch/script file containing something like this: Commands are as follows - a: to add to archive, -r to make recursive, -t7z .7z archive file type. Note: this is untested.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment