PowerArchiver Home

  #1  
Old 07-08-2010, 06:24 PM
Brian Gregory Brian Gregory is offline
PA Super User
 
Join Date: Feb 2005
Location: Reading, England
Posts: 77
Thanks: 1
Thanked 6 Times in 6 Posts
Question PACOMP -u -r -p -o -xBackup.zip Backup.zip

I am trying to backup a folder with the following command in a batch file:

PACOMP -u -r -p -o -xBackup.zip Backup.zip *

but PACOMP stores the filenames with not just the relative paths from the current directory but the relative paths from the directory above ( .. ) which I don't want.

Is this a bug or am I missing something.

Last edited by Brian Gregory; 07-09-2010 at 06:45 AM. Reason: Improve clarity
Reply With Quote
  #2  
Old 07-15-2010, 06:00 PM
Brian Gregory Brian Gregory is offline
PA Super User
 
Join Date: Feb 2005
Location: Reading, England
Posts: 77
Thanks: 1
Thanked 6 Times in 6 Posts
Hello, IS THERE ANYBODY THERE???
Reply With Quote
  #3  
Old 07-15-2010, 06:26 PM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,823
Thanks: 682
Thanked 207 Times in 192 Posts
can you output filelist to the file and show it here so we can see what you exactly mean?
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #4  
Old 07-28-2010, 02:47 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 Brian!
I have tried recreate your problem, but for me it's working as expected or maybe I'm not doing exactly the same as you are. Anyway, this is what I have tried.

I'm in the folder C:\Programs\Test which have 3 subfolders. My bat file look like this:
Code:
PACOMP -u -r -p -o -xBackup.zip Backup.zip *
Saved as Backup.bat in folder C:\Programs\Test

I then run the bat file from a CMD window in the folder C:\Programs\Test

Code:
C:\Programs\Test>Backup.bat

C:\Programs\Test>PACOMP -u -r -p -o -xBackup.zip Backup.zip *
PowerArchiver Command Line (PACL)              Version 6.01       [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved.  Shareware Version
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\Test\Backup.zip
  preparing to compress...
  adding: Test\   --> Done. [0%]
  adding: Test\Amiga\   --> Done. [0%]
  adding: Test\Amiga\Amiga XP x86.pdf   --> Done. [45%]
  adding: Test\Amiga\Deluxe Paint 4 Manual.pdf   --> Done. [48%]
  adding: Test\Amiga\REFSCAN1.PCX   --> Done. [52%]
  adding: Test\Amiga\REFSCAN2.PCX   --> Done. [54%]
  adding: Test\Amiga\REFSCAN3.PCX   --> Done. [56%]
  adding: Test\Amiga\REFSCAN4.PCX   --> Done. [58%]
  adding: Test\Amiga\REFSCAN5.PCX   --> Done. [60%]
  adding: Test\Amiga\REFSCAN6.PCX   --> Done. [62%]
  adding: Test\Amiga\TF\   --> Done. [62%]
  adding: Test\Amiga\TF\3Pluto.pcx   --> Done. [63%]
  adding: Test\Amiga\TF\4Goofy.pcx   --> Done. [65%]
  adding: Test\Amiga\TF\5Donald.pcx   --> Done. [66%]
  adding: Test\Amiga\TF\6Daisy.pcx   --> Done. [67%]
.
.
.
.
All OK
I then list the archive Backup.zip

Code:
C:\Programs\Test>paext -v Backup.zip
PowerArchiver Command Line (PACL)              Version 6.01       [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved.  Shareware Version
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\Test\Backup.zip [ZIP]

Name            Length   Method   Ratio      Size      Date & Time      CRC-32
------------  --------  --------  -----  --------  ------------------- --------
Test\
                     0              0%          0  07-28-2010 21:34:10     ?
Test\Amiga\
                     0              0%          0  07-28-2010 21:32:18     ?
Test\Amiga\Amiga XP x86.pdf
               1077633    DFLT-N   53%     507025  02-24-2010 19:28:54 e3db0d24
Test\Amiga\Deluxe Paint 4 Manual.pdf
                 73328    DFLT-N   20%      58629  12-15-2009 23:31:02 f5de8c90
Test\Amiga\REFSCAN1.PCX
                 73648    DFLT-N   27%      54058  09-08-1997 23:52:06 655db0d9
Test\Amiga\REFSCAN2.PCX
                 57080    DFLT-N   25%      43045  09-08-1997 23:55:36 e217ed52
Test\Amiga\REFSCAN3.PCX
                 36833    DFLT-N   31%      25312  09-08-1997 23:56:34 fc88aa12
Test\Amiga\REFSCAN4.PCX
                 57612    DFLT-N   24%      43813  09-08-1997 23:58:50 9ecb4964
Test\Amiga\REFSCAN5.PCX
                 55959    DFLT-N   27%      41124  09-09-1997 00:00:04 fe181f10
Test\Amiga\REFSCAN6.PCX
                 31751    DFLT-N   30%      22319  09-09-1997 00:02:38 1f5e0325
Test\Amiga\TF\
                     0              0%          0  07-28-2010 21:32:18     ?
Test\Amiga\TF\3Pluto.pcx
                 27760    DFLT-N   23%      21362  09-14-2009 23:32:50 1cf594be
Test\Amiga\TF\4Goofy.pcx
                 42917    DFLT-N   12%      37713  09-14-2009 23:32:52 d82756c4
Test\Amiga\TF\5Donald.pcx
                 28119    DFLT-N   23%      21631  09-14-2009 23:32:52 86dd5049
Test\Amiga\TF\6Daisy.pcx
                 28919    DFLT-N   22%      22672  09-14-2009 23:32:54 d5a3cac3
The path looks ok for me, it's from the current folder Test and then the subfolders. I don't get any parent folders above the Test folder.

Kind Regards
Micke
Reply With Quote
  #5  
Old 07-28-2010, 06:17 PM
Brian Gregory Brian Gregory is offline
PA Super User
 
Join Date: Feb 2005
Location: Reading, England
Posts: 77
Thanks: 1
Thanked 6 Times in 6 Posts
Quote:
Originally Posted by Micke View Post
Hi Brian!
I have tried recreate your problem, but for me it's working as expected or maybe I'm not doing exactly the same as you are. Anyway, this is what I have tried.
...
Thanks.

But when you list the contents of the archive you created they are stored as, for example:
Code:
Test\Amiga\Amiga XP x86.pdf
Why would anyone want "Test\" at the beginning?
It wouldn't be there is I'd used the GUI PowerArchiver and it's does nothing except complicate the process of extracting the contents of the archive to any place I should want to extract it to.
Reply With Quote
  #6  
Old 07-29-2010, 01:23 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!

Quote:
Originally Posted by Brian Gregory View Post
Why would anyone want "Test\" at the beginning?
It wouldn't be there is I'd used the GUI PowerArchiver and it's does nothing except complicate the process of extracting the contents of the archive to any place I should want to extract it to.
It looks like there is a bug in the parameter -p (store relative Pathnames), because it stores the current folder (in this case folder Test) in the path, but the correct one would be as the one in PA, who doesn't store the current folder Test when using relative pathnames.

When I list the contents of an archive created with PA the relative pathnames is correct.

Code:
Name            Length   Method   Ratio      Size      Date & Time      CRC-32
------------  --------  --------  -----  --------  ------------------- --------
Amiga\
                     0              0%          0  07-28-2010 21:32:18     ?
Amiga\Amiga XP x86.pdf
               1077633    DFLT-X   53%     504830  02-24-2010 19:28:54 e3db0d24
Amiga\Deluxe Paint 4 Manual.pdf
                 73328    DFLT-X   20%      58549  12-15-2009 23:31:02 f5de8c90
Amiga\REFSCAN1.PCX
                 73648    DFLT-X   27%      53976  09-08-1997 23:52:06 655db0d9
Amiga\REFSCAN2.PCX
                 57080    DFLT-X   25%      42950  09-08-1997 23:55:36 e217ed52
Amiga\REFSCAN3.PCX
                 36833    DFLT-X   32%      25157  09-08-1997 23:56:34 fc88aa12
Amiga\REFSCAN4.PCX
                 57612    DFLT-X   24%      43717  09-08-1997 23:58:50 9ecb4964
Amiga\REFSCAN5.PCX
                 55959    DFLT-X   27%      40952  09-09-1997 00:00:04 fe181f10
Amiga\REFSCAN6.PCX
                 31751    DFLT-X   30%      22235  09-09-1997 00:02:38 1f5e0325
Amiga\TF\
                     0              0%          0  07-28-2010 21:32:18     ?
Amiga\TF\3Pluto.pcx
                 27760    DFLT-X   23%      21270  09-14-2009 23:32:50 1cf594be
Amiga\TF\4Goofy.pcx
                 42917    DFLT-X   12%      37584  09-14-2009 23:32:52 d82756c4
Amiga\TF\5Donald.pcx
                 28119    DFLT-X   24%      21499  09-14-2009 23:32:52 86dd5049
Amiga\TF\6Daisy.pcx
I didn't notice this before, thanks for the info.

Kind Regards
Micke
Reply With Quote
  #7  
Old 08-09-2010, 04:40 AM
Mili Mili is offline
Moderator
 
Join Date: Nov 2007
Posts: 595
Thanks: 200
Thanked 53 Times in 50 Posts
logged in, thanks ppl!!
Reply With Quote
  #8  
Old 10-06-2010, 12:29 PM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,823
Thanks: 682
Thanked 207 Times in 192 Posts
BTW, workaround here is to use full path to the folder for file selection and that seems to work fine...
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #9  
Old 10-08-2010, 06:42 AM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,823
Thanks: 682
Thanked 207 Times in 192 Posts
PACL 6.02 RC:
http://www.powerarchiver.com/test/release10/pacl602.exe

Please check your reported issues and see if they are fixed or not... thanks!
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #10  
Old 10-19-2010, 01:47 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!
Another test of PACL 6.02 is now completed. Here's the result of these test.

Contents of Backup.bat
Code:
PACOMP -u -r -p -o -xBackup.zip Backup.zip *
I then run the Backup.bat
Code:
C:\Programs\Test>Backup.bat

C:\Programs\Test>PACOMP -u -r -p -o -xBackup.zip Backup.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 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\Test\Backup.zip
  preparing to compress...
  adding: Amiga\   --> Done. [0%]
  adding: Amiga\Amiga XP x86.pdf   --> Done. [67%]
  adding: Amiga\Deluxe Paint 4 Manual.pdf   --> Done. [72%]
  adding: Amiga\REFSCAN1.PCX   --> Done. [76%]
  adding: Amiga\REFSCAN2.PCX   --> Done. [80%]
  adding: Amiga\REFSCAN3.PCX   --> Done. [82%]
  adding: Amiga\REFSCAN4.PCX   --> Done. [86%]
  adding: Amiga\REFSCAN5.PCX   --> Done. [89%]
  adding: Amiga\REFSCAN6.PCX   --> Done. [91%]
  adding: Amiga\TF\   --> Done. [91%]
  adding: Amiga\TF\3Pluto.pcx   --> Done. [93%]
  adding: Amiga\TF\4Goofy.pcx   --> Done. [96%]
  adding: Amiga\TF\5Donald.pcx   --> Done. [98%]
  adding: Amiga\TF\6Daisy.pcx   --> Done. [99%]
  adding: Backup.bat   --> Done. [100%]

All OK

C:\Programs\Test>
Next thing is list the content of the created archive.
Code:
C:\Programs\Test>paext -v Backup.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 --> C:\Programs\Test\Backup.zip [ZIP]

Name            Length   Method   Ratio      Size      Date & Time      CRC-32
------------  --------  --------  -----  --------  ------------------- --------
Amiga\
                     0              0%          0  10-19-2010 20:35:56     ?
Amiga\Amiga XP x86.pdf
               1077633    DFLT-N   53%     507025  02-24-2010 19:28:54 e3db0d24
Amiga\Deluxe Paint 4 Manual.pdf
                 73328    DFLT-N   20%      58629  12-15-2009 23:31:02 f5de8c90
Amiga\REFSCAN1.PCX
                 73648    DFLT-N   27%      54058  09-08-1997 23:52:06 655db0d9
Amiga\REFSCAN2.PCX
                 57080    DFLT-N   25%      43045  09-08-1997 23:55:36 e217ed52
Amiga\REFSCAN3.PCX
                 36833    DFLT-N   31%      25312  09-08-1997 23:56:34 fc88aa12
Amiga\REFSCAN4.PCX
                 57612    DFLT-N   24%      43813  09-08-1997 23:58:50 9ecb4964
Amiga\REFSCAN5.PCX
                 55959    DFLT-N   27%      41124  09-09-1997 00:00:04 fe181f10
Amiga\REFSCAN6.PCX
                 31751    DFLT-N   30%      22319  09-09-1997 00:02:38 1f5e0325
Amiga\TF\
                     0              0%          0  10-19-2010 20:35:56     ?
Amiga\TF\3Pluto.pcx
                 27760    DFLT-N   23%      21362  09-14-2009 23:32:50 1cf594be
Amiga\TF\4Goofy.pcx
                 42917    DFLT-N   12%      37713  09-14-2009 23:32:52 d82756c4
Amiga\TF\5Donald.pcx
                 28119    DFLT-N   23%      21631  09-14-2009 23:32:52 86dd5049
Amiga\TF\6Daisy.pcx
                 28919    DFLT-N   22%      22672  09-14-2009 23:32:54 d5a3cac3
Backup.bat
                    44    DFLT-N   16%         37  10-19-2010 20:37:14 3212ec11
------------  --------  --------  -----  --------  ------------------- --------
*Totals   15   1591603             43%     900428  10-19-2010 20:37:12

C:\Programs\Test>
The relative path is now stored correctly. Good work guys.

Test result: OK

Kind Regards
Micke
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BUG: PACOMP.EXE Modifying Date/Time of Compressed Files in ZIP gsbell Tech Support 4 11-13-2008 04:38 PM
PACOMP hanging? jknepfle Tech Support 1 11-06-2008 04:15 PM
pacl pacomp command line stops pauser59 Tech Support 6 04-02-2008 03:05 AM
PAComp does not run quietly IVO Tech Support 2 08-01-2005 11:45 AM
Option to add the date to the archive name in PACOMP ? Grigann Wishlist 4 10-08-2004 03:01 AM


All times are GMT -5. The time now is 12:17 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.