FG

How to specify relative path in 7-zip command line?

Fresh3 days ago
Mar 15, 202617903 views
Confidence Score0%
0%

Problem

I like 7-zip and I needed it's command line today. I bumped into a problem. Is there a way to specify a path within archive when compressing? For example I have a file at . When compressing I want to specify destination path to be within archive. Is this possible? This seems like fairly common thin…

Error Output

C:\some_dir\my_file.txt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to specify relative path in 7-zip command line?

Low Risk

You can use the 7zip's 'rn' command on the command line: This will put your already compressed file in different (internal) archive folder. This works only on already created archive. If you need 'other_dir' to be some relative path (not random dire…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment