Specify archive-to directory in 7z

0

I'm running 7z a from the command line and wish to specify the directory which the archive .7z file is to be in. I don't see, from the man page, a way to do this (and -o and -w don't do it). Is there a way to do it?

msh210

Posted 2013-05-24T19:01:44.437

Reputation: 205

Answers

2

You can specify the path as part of the name of the compressed file you want to create.

Something like:

7zip a /directoryName/archiveName.7z dirToCompress

Ƭᴇcʜιᴇ007

Posted 2013-05-24T19:01:44.437

Reputation: 103 763