View Single Post
  #10  
Old 05-14-2012, 01: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
Test 1 - Archive with no paths to the files inside

Hi!
Now I'm finished with my testing of PACL 7.00 [May 11 2012]. I've made 4 different tests of removing files from an archive using a listfile.

Each test will be in a separate post in this thread

Test 1 - Archive with no paths to the files inside

Begin with create the archive T1_NoPath.zip
Code:
C:\Programs\PACL_Test>pacomp -a T1_NoPath.zip issue1*_en.pdf 
PowerArchiver Command Line (PACL)              Version 7.00       [May 11 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version

Remainder: This is unregistered version of PACL. Please register at http://www.powerarchiver.com
Press <ENTER> to continue.
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive: C:\Programs\PACL_Test\T1_NoPath.zip
  preparing to compress...
  adding: issue10_en.pdf   --> Done. [8%]
  adding: issue11_en.pdf   --> Done. [16%]
  adding: issue12_en.pdf   --> Done. [27%]
  adding: issue13_en.pdf   --> Done. [36%]
  adding: issue14_en.pdf   --> Done. [43%]
  adding: issue15_en.pdf   --> Done. [52%]
  adding: issue16_en.pdf   --> Done. [60%]
  adding: issue17_en.pdf   --> Done. [70%]
  adding: issue18_en.pdf   --> Done. [79%]
  adding: issue19_en.pdf   --> Done. [90%]
  adding: issue1_en.pdf   --> Done. [100%]

All OK

C:\Programs\PACL_Test>
List the contents of T1_NoPath.zip
Code:
C:\Programs\PACL_Test>paext -v T1_NoPath.zip 
PowerArchiver Command Line (PACL)              Version 7.00       [May 11 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version

Remainder: This is unregistered version of PACL. Please register at http://www.powerarchiver.com
Press <ENTER> to continue.
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 --> C:\Programs\PACL_Test\T1_NoPath.zip [ZIP       ]

Name            Length   Method   Ratio      Size      Date & Time      CRC-32
------------  --------  --------  -----  --------  ------------------- --------
issue10_en.pdf
               5397705    DFLT-N    9%    4917615  02-29-2008 02:17:18 57056248
issue11_en.pdf
               5357464    DFLT-N   11%    4751261  03-28-2008 02:42:10 86a33c50
issue12_en.pdf
               7536694    DFLT-N   10%    6786765  04-25-2008 04:04:48 7f450459
issue13_en.pdf
               6043586    DFLT-N    7%    5637885  05-31-2008 00:49:00 be7f39b6
issue14_en.pdf
               4867559    DFLT-N    7%    4507529  06-27-2008 03:47:06 3c60e08c
issue15_en.pdf
               5406917    DFLT-N   11%    4822067  07-25-2008 17:50:10 f263d610
issue16_en.pdf
               5631112    DFLT-N    8%    5192912  08-30-2008 03:09:20 2b82378a
issue17_en.pdf
               6802691    DFLT-N    9%    6216014  11-02-2008 18:47:56 9e38fd6b
issue18_en.pdf
               5612632    DFLT-N   11%    5019494  11-02-2008 03:47:54 b0a98880
issue19_en.pdf
               7192716    DFLT-N   10%    6490518  11-30-2008 02:35:18 7e2cf9cc
issue1_en.pdf
               6629883    DFLT-N    5%    6318565  06-08-2007 02:45:06 69255866
------------  --------  --------  -----  --------  ------------------- --------
*Totals   11  66478959              9%   60661789  05-13-2012 22:01:10

C:\Programs\PACL_Test>
Content of listfile deletelist1.txt
Code:
issue10_en.pdf
issue12_en.pdf
issue16_en.pdf
issue17_en.pdf
Expected results from the test: The named files in the listfile will be removed from the archive.

Remove the files from T1_NoPath.zip
Code:
C:\Programs\PACL_Test>pacomp -d T1_NoPath.zip @deletelist1.txt 
PowerArchiver Command Line (PACL)              Version 7.00       [May 11 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version

Remainder: This is unregistered version of PACL. Please register at http://www.powerarchiver.com
Press <ENTER> to continue.
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive: C:\Programs\PACL_Test\T1_NoPath.zip
  preparing to compress...
  deleting: issue10_en.pdf  
  deleting: issue12_en.pdf  
  deleting: issue16_en.pdf  
  deleting: issue17_en.pdf  

All OK

C:\Programs\PACL_Test>
List the contents of T1_NoPath.zip after removing the files
Code:
C:\Programs\PACL_Test>paext -v T1_NoPath.zip 
PowerArchiver Command Line (PACL)              Version 7.00       [May 11 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version

Remainder: This is unregistered version of PACL. Please register at http://www.powerarchiver.com
Press <ENTER> to continue.
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 --> C:\Programs\PACL_Test\T1_NoPath.zip [ZIP       ]

Name            Length   Method   Ratio      Size      Date & Time      CRC-32
------------  --------  --------  -----  --------  ------------------- --------
issue11_en.pdf
               5357464    DFLT-N   11%    4751261  03-28-2008 02:42:10 86a33c50
issue13_en.pdf
               6043586    DFLT-N    7%    5637885  05-31-2008 00:49:00 be7f39b6
issue14_en.pdf
               4867559    DFLT-N    7%    4507529  06-27-2008 03:47:06 3c60e08c
issue15_en.pdf
               5406917    DFLT-N   11%    4822067  07-25-2008 17:50:10 f263d610
issue18_en.pdf
               5612632    DFLT-N   11%    5019494  11-02-2008 03:47:54 b0a98880
issue19_en.pdf
               7192716    DFLT-N   10%    6490518  11-30-2008 02:35:18 7e2cf9cc
issue1_en.pdf
               6629883    DFLT-N    5%    6318565  06-08-2007 02:45:06 69255866
------------  --------  --------  -----  --------  ------------------- --------
*Totals    7  41110757              9%   37548067  05-13-2012 22:03:24

C:\Programs\PACL_Test>
Test result: Success

Kind Regards
Micke

Last edited by Micke; 05-14-2012 at 01:26 PM. Reason: Changed from separate thread to separate post
The Following 2 Users Say Thank You to Micke For This Useful Post:
pedlessimennim (10-18-2012), spwolf (05-14-2012)