ฉันต้องการบีบอัดโฟลเดอร์C:\Tempแต่ไม่มีโฟลเดอร์ย่อยเฉพาะ (เช่นC:\Temp\test) ฉันจะทำเช่นนั้นกับ 7zip ได้อย่างไร
ฉันคิดคำสั่งต่อไปนี้:
c:\Temp>7zip a -t7z test.7z c:\temp\ -mx0 -x!c:\temp\test\*
แต่มันไม่ทำงานเนื่องจากผลลัพธ์คือ:
7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
Scanning
Updating archive test.7z
Compressing  Temp\admin.PNG
Compressing  Temp\test\admin2.PNG   <<<<<< this file should not be added to the archive
Compressing  Temp\first.txt
          
                  สวิตช์
                
                  
                    —
                    Martin Vseticka 
                    
                  
                
              -rไม่ได้ช่วย
                
-rธง (วนซ้ำ) ค่าเริ่มต้นจะไม่เรียกคืนไดเรกทอรีย่อย