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.
-
Hello, IS THERE ANYBODY THERE???
-
can you output filelist to the file and show it here so we can see what you exactly mean?
-
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:
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
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
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 -
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:
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. -
Hi!
@Brian:
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.
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 -
logged in, thanks ppl!!
-
BTW, workaround here is to use full path to the folder for file selection and that seems to work fine…
-
PACL 6.02 RC:
http://www.powerarchiver.com/test/release10/pacl602.exePlease check your reported issues and see if they are fixed or not… thanks!
-
Hi!
Another test of PACL 6.02 is now completed. Here’s the result of these test.Contents of Backup.bat
PACOMP -u -r -p -o -xBackup.zip Backup.zip * ```I then run the Backup.bat
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© 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.comArchive: 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>
C:\Programs\Test>paext -v Backup.zip
PowerArchiver Command Line (PACL) Version 6.02 [Oct 10 2010]
Copyright© 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.comArchive --> 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>
Test result: **OK** Kind Regards Micke