View Single Post
  #12  
Old 02-05-2012, 08:36 AM
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 now retested this using PACL 7.00 beta 1. As before I have tried to create a archive with a quote in password. Here's the result from the test

Create a archive with password = aa"a

Code:
C:\PACL_Test\Amiga>pacomp -a -saa"a -e2 -p Test1.zip REFSCAN*.*
PowerArchiver Command Line (PACL)              Version 7.00       [Jan 29 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZ2,XZ,LZM
A
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Example PACOMP commands:
------------------------

   pacomp -a docs.zip "c:\my documents\*.doc"
       Compress all *.doc files from  "c:\my documents" directory to archive
       docs.zip

   pacomp -a -ssecret -c0 -p -r stuff.bh "c:\my stuff\*"
       Compress all files from "c:\my stuff" directory and subdirectories to
       archive stuff.bh with no compression and with password "secret"

Press ENTER to continue:
PACOMP won't accept quote in password. Next thing try using ^"

Code:
C:\PACL_Test\Amiga>pacomp -a -saa^"a -e2 -p Test1.zip REFSCAN*.*
PowerArchiver Command Line (PACL)              Version 7.00       [Jan 29 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZ2,XZ,LZM
A
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Example PACOMP commands:
------------------------

   pacomp -a docs.zip "c:\my documents\*.doc"
       Compress all *.doc files from  "c:\my documents" directory to archive
       docs.zip

   pacomp -a -ssecret -c0 -p -r stuff.bh "c:\my stuff\*"
       Compress all files from "c:\my stuff" directory and subdirectories to
       archive stuff.bh with no compression and with password "secret"

Press ENTER to continue:
Still no success. I then try put the password in a file.

Content of password.txt
Code:
aa"a
I then create the archive
Code:
C:\PACL_Test\Amiga>pacomp -a -s@password.txt -e2 -p Test1.zip REFSCAN1.PCX
PowerArchiver Command Line (PACL)              Version 7.00       [Jan 29 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version

Remainder: This is unregistered version of PACL. Please register at http://www.p
owerarchiver.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:\PACL_Test\Amiga\Test1.zip
  preparing to compress...
  adding: REFSCAN1.PCX   --> Done. [100%]

All OK

C:\PACL_Test\Amiga>
Looks like it working properly. Now I try test the created archive to check that the password is set correctly.

Code:
C:\PACL_Test\Amiga>paext -t Test1.zip
PowerArchiver Command Line (PACL)              Version 7.00       [Jan 29 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version

Remainder: This is unregistered version of PACL. Please register at http://www.p
owerarchiver.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:\PACL_Test\Amiga\Test1.zip [ZIP]

  testing: REFSCAN1.PCX  Enter password for REFSCAN1.PCX: aaa

   *** Message: Invalid password   aaa
Enter password for REFSCAN1.PCX: aa"a
--> OK [100%]

C:\PACL_Test\Amiga>
PACL works the same in 7.00 b1 as in 6.02. It's possible to use quote in a password as long as you put the password in a text file.

Kind Regards
Micke
Reply With Quote
The Following User Says Thank You to Micke For This Useful Post:
Mili (02-07-2012)