Solved

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

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
If your app took Google’s lash recently, here are the 5 most likely reasons.
Viewers will learn how to use the Hootsuite Dashboard.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now