Solved

75 EASY POINTS! How to use 7zip command line?

Posted on 2004-09-08
3
1,826 Views
Last Modified: 2010-05-18
I use 7zip's command line option but I can't zip files outside of the directory where 7zip is already located.

For example, the 7z.exe is located in C:\7zip.
My file is located in C:\documents.
To use "7z a C:\documents\zipped.zip C:\documents\abc.txt" yields the following error "Can't use absolute paths".  
Can anyone help me?
0
Comment
Question by:shaolinfunk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
Neil_Simpson earned 75 total points
ID: 12005211
You could try a relative path such as ..\documents\abc.txt?
0
 
LVL 11

Expert Comment

by:acseven
ID: 12005502
try it like this:

c:\>7z a "C:\documents\zipped.zip" "C:\documents\abc.txt"

also, for what's written at soundforge, the command line command should be 7za.exe:
http://sourceforge.net/forum/forum.php?thread_id=1139670&forum_id=45798
0
 
LVL 11

Expert Comment

by:acseven
ID: 12005605
sorry the above won't work, but this does:

oh, it should be something like this:

c:\7-zip\7za a c:\tempzipfile.zip ..\temp\*

here I installed 7-zip in the C:\7-zip folder, and I want to zip all files at c:\temp to c:\tempzipfile.zip.

So, this means that Neil_Simpson's above answer is correct ;)
0

Featured Post

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
Invest in your employees with these five simple steps to improve employee engagement and retention.
This video demonstrates basic masking and how to edit the mask to reveal the desired image.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question