View Single Post
  #3  
Old 10-18-2010, 04:15 PM
Micke's Avatar
Micke Micke is offline
PA Super User
 
Join Date: Feb 2010
Location: Sweden
Posts: 131
Thanks: 11
Thanked 52 Times in 40 Posts
Hi!
I have tested removing more than one file from a Archive by using a listfile. Here's the results from this test.

Contents of Listfile.txt
Code:
D:\PA_Test\IMG_01.jpg
D:\PA_Test\IMG_02.jpg
D:\PA_Test\IMG_03.jpg
D:\PA_Test\IMG_04.jpg
D:\PA_Test\IMG_05.jpg
D:\PA_Test\IMG_06.jpg
D:\PA_Test\IMG_07.jpg
D:\PA_Test\IMG_08.jpg
D:\PA_Test\IMG_09.jpg
D:\PA_Test\IMG_10.jpg
D:\PA_Test\IMG_11.jpg
D:\PA_Test\IMG_12.jpg
D:\PA_Test\IMG_13.jpg
D:\PA_Test\IMG_14.jpg
D:\PA_Test\IMG_15.jpg
D:\PA_Test\IMG_16.jpg
D:\PA_Test\IMG_17.jpg
D:\PA_Test\IMG_18.jpg
D:\PA_Test\IMG_19.jpg
D:\PA_Test\IMG_20.jpg
D:\PA_Test\IMG_21.jpg
D:\PA_Test\IMG_22.jpg
D:\PA_Test\IMG_23.jpg
Create a archive with full pathname and using a listfile to add the files to the archive

Code:
D:\PACL_Test>pacomp -a -P PACL_Test_P.zip @Listfile.txt
PowerArchiver Command Line (PACL)              Version 6.02       [Oct 10 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive: D:\PACL_Test\PACL_Test_P.zip
  preparing to compress...
  adding: PA_Test\IMG_01.jpg   --> Done. [3%]
  adding: PA_Test\IMG_02.jpg   --> Done. [6%]
  adding: PA_Test\IMG_03.jpg   --> Done. [13%]
  adding: PA_Test\IMG_04.jpg   --> Done. [17%]
  adding: PA_Test\IMG_05.jpg   --> Done. [21%]
  adding: PA_Test\IMG_06.jpg   --> Done. [27%]
  adding: PA_Test\IMG_07.jpg   --> Done. [31%]
  adding: PA_Test\IMG_08.jpg   --> Done. [36%]
  adding: PA_Test\IMG_09.jpg   --> Done. [40%]
  adding: PA_Test\IMG_10.jpg   --> Done. [45%]
  adding: PA_Test\IMG_11.jpg   --> Done. [49%]
  adding: PA_Test\IMG_12.jpg   --> Done. [54%]
  adding: PA_Test\IMG_13.jpg   --> Done. [57%]
  adding: PA_Test\IMG_14.jpg   --> Done. [61%]
  adding: PA_Test\IMG_15.jpg   --> Done. [65%]
  adding: PA_Test\IMG_16.jpg   --> Done. [69%]
  adding: PA_Test\IMG_17.jpg   --> Done. [73%]
  adding: PA_Test\IMG_18.jpg   --> Done. [77%]
  adding: PA_Test\IMG_19.jpg   --> Done. [82%]
  adding: PA_Test\IMG_20.jpg   --> Done. [87%]
  adding: PA_Test\IMG_21.jpg   --> Done. [92%]
  adding: PA_Test\IMG_22.jpg   --> Done. [96%]
  adding: PA_Test\IMG_23.jpg   --> Done. [100%]

All OK

D:\PACL_Test>
List the contents of the created archive
Code:
D:\PACL_Test>paext -v PACL_Test_P.zip
PowerArchiver Command Line (PACL)              Version 6.02       [Oct 10 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Extr.---ZIP,ZIPX,7Z,CAB,LHA,ARJ,RAR,ACE,TAR,GZ,BZ2,UUE,ZOO,B64,YENC,...
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive --> D:\PACL_Test\PACL_Test_P.zip [ZIP]

Name            Length   Method   Ratio      Size      Date & Time      CRC-32
------------  --------  --------  -----  --------  ------------------- --------
PA_Test\IMG_01.jpg
                161789    DFLT-N   29%     114454  08-03-2010 23:07:24 ef81e275
PA_Test\IMG_02.jpg
                138233    DFLT-N   32%      94385  08-03-2010 23:07:58 e3b93b26
PA_Test\IMG_03.jpg
                261775    DFLT-N   17%     217479  08-03-2010 23:09:48 7457e2e9
PA_Test\IMG_04.jpg
                183436    DFLT-N   24%     138970  08-03-2010 23:10:34 ec974b2f
PA_Test\IMG_05.jpg
                175546    DFLT-N   25%     131279  08-03-2010 23:10:54 58dd4120
PA_Test\IMG_06.jpg
                283265    DFLT-N   17%     236153  08-03-2010 23:11:28 d2d582d0
PA_Test\IMG_07.jpg
                158403    DFLT-N   30%     110876  08-03-2010 23:12:02 b394d1d1
PA_Test\IMG_08.jpg
                208013    DFLT-N   23%     160622  08-03-2010 23:12:24 3bc9cda3
PA_Test\IMG_09.jpg
                195931    DFLT-N   21%     154721  08-03-2010 23:13:36 59815b19
PA_Test\IMG_10.jpg
                204451    DFLT-N   24%     154399  08-03-2010 23:14:38 351c82b3
PA_Test\IMG_11.jpg
                187594    DFLT-N   23%     144056  08-03-2010 23:14:58 fe0d02ed
PA_Test\IMG_12.jpg
                190967    DFLT-N   24%     144839  08-03-2010 23:15:28 411436ba
PA_Test\IMG_13.jpg
                138797    DFLT-N   32%      94621  08-03-2010 23:16:10 a19a1f7c
PA_Test\IMG_14.jpg
                175613    DFLT-N   25%     131688  08-03-2010 23:16:42 9b14cd22
PA_Test\IMG_15.jpg
                171813    DFLT-N   26%     127673  08-03-2010 23:23:34 1fb450a6
PA_Test\IMG_16.jpg
                182176    DFLT-N   24%     137901  08-03-2010 23:23:54 8cedea77
PA_Test\IMG_17.jpg
                176589    DFLT-N   25%     132412  08-03-2010 23:24:24 705c51f7
PA_Test\IMG_18.jpg
                146091    DFLT-N   33%      98556  08-03-2010 23:17:32 47a1097f
PA_Test\IMG_19.jpg
                229730    DFLT-N   21%     182631  08-03-2010 23:18:00 7229c032
PA_Test\IMG_20.jpg
                217430    DFLT-N   20%     173301  08-03-2010 23:18:40 7f7c88e6
PA_Test\IMG_21.jpg
                189525    DFLT-N   23%     145747  08-03-2010 23:19:00 85db48ce
PA_Test\IMG_22.jpg
                179442    DFLT-N   23%     138371  08-03-2010 23:19:24 b7d7507f
PA_Test\IMG_23.jpg
                162456    DFLT-N   27%     118401  08-03-2010 23:20:00 f44fb9eb
------------  --------  --------  -----  --------  ------------------- --------
*Totals   23   4319065             24%    3286133  10-18-2010 22:23:54

D:\PACL_Test>
Contents of the listfile I'll be using for removing files from the created archive. I have assumed that the filenames in the listfile should have the full pathname as they have in the archive.

Code:
PA_Test\IMG_01.jpg
PA_Test\IMG_02.jpg
PA_Test\IMG_03.jpg
PA_Test\IMG_04.jpg
PA_Test\IMG_05.jpg
PA_Test\IMG_06.jpg
PA_Test\IMG_07.jpg
PA_Test\IMG_08.jpg
PA_Test\IMG_09.jpg
Run the command to remove these 9 files from the archive.

Code:
D:\PACL_Test>pacomp -d PACL_Test_P.zip @Listfile_Del_P.txt
PowerArchiver Command Line (PACL)              Version 6.02       [Oct 10 2010
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Versio
This product is licensed to:
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive: D:\PACL_Test\PACL_Test_P.zip
  preparing to compress...
  deleting: PA_Test\IMG_01.jpg
   *** WARNING: Nothing to add or update...

All OK

D:\PACL_Test>
I then list the contents of the archive again.

Code:
D:\PACL_Test>paext -v PACL_Test_P.zip
PowerArchiver Command Line (PACL)              Version 6.02       [Oct 10 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to: Mikael Hedman
Archive Extr.---ZIP,ZIPX,7Z,CAB,LHA,ARJ,RAR,ACE,TAR,GZ,BZ2,UUE,ZOO,B64,YENC,...
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive --> D:\PACL_Test\PACL_Test_P.zip [ZIP]

Name            Length   Method   Ratio      Size      Date & Time      CRC-32
------------  --------  --------  -----  --------  ------------------- --------
PA_Test\IMG_02.jpg
                138233    DFLT-N   32%      94385  08-03-2010 23:07:58 e3b93b26
PA_Test\IMG_03.jpg
                261775    DFLT-N   17%     217479  08-03-2010 23:09:48 7457e2e9
As you can see, only PA_Test\IMG_01.jpg was removed from the archive.

Let me know if I have missed something in these tests. I'm looking forward this functionality and will do more tests of it when you have updated PACL with it.

Kind Regards
Micke
The Following User Says Thank You to Micke For This Useful Post:
pedlessimennim (10-18-2012)