Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
please help me
I have ....\ddd.zip\1\2\A.txt
and I have b.txt
I need add b.txt to the folder 2
and how do to Extract A.txt only

I'm sorry for my bad English

thank you
Posted
Updated 11-Sep-14 7:03am
v2
Comments
Sergey Alexandrovich Kryukov 11-Sep-14 14:42pm    
Your problem is not English, but using wrong forum. This one is for software development, science and related topic. Your question is about the application usage. And what's wrong with just reading 7-zip documentation?
—SA

1 solution

Maybe this can be of some help.

7-Zip Command-Line[^]

Command Line Syntax[^]

Extract the file
>7za e -tzip ddd.zip 1\2\A.txt


Add a file to a specific directory

  1. Create the wanted directory structure in the directory where ddd.zip is located.
  2. Example: If ddd.zip is located in c:\temp, then create c:\temp\1\2

  3. Copy the file into the last folder.
  4. Example: c:\temp\1\2\b.txt

  5. Add the file to the archive.
  6. >7za a -tzip ddd.zip 1\2\b.txt

 
Share this answer
 
v2
Comments
Shihab AL_Akwaa 11-Sep-14 14:55pm    
Thanks for your help
I've seen it before, but this is not what I want
please help me
George Jonsson 11-Sep-14 23:36pm    
What do you want then?
Shihab AL_Akwaa 12-Sep-14 13:30pm    
I have d:\abc.zip in it folder A in the folder A folder B in the folder B x.txt
and i have d:\ss.txt
i want
command line for
1- extract x.txt from folder B
2- add d:\ss.txt to folder B

I mean how can write the path of x.txt in CMD to extract
and how to write the path of folder B to add ss.txt to it
George Jonsson 12-Sep-14 15:16pm    
Did you read the documentation?
Shihab AL_Akwaa 12-Sep-14 20:07pm    
Yes,I've read
But I didn't find what I want

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900