?
Solved

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

Posted on 2004-09-08
3
Medium Priority
?
1,832 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 300 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

719 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