Solved

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

Posted on 2004-09-08
3
1,823 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
API v SOA 8 65
Infrastructure development vs software development 3 107
Software for Local History Museum Library 5 90
Danger Ahead? Installing old software on new PC 6 48
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
This article was originally published on Monitis Blog, you can check it here . If you have responsibility for software in production, I bet you’d like to know more about it. I don’t mean that you’d like an extra peek into the bowels of the sourc…
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

752 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