|
#1
|
|||
|
|||
|
Password with a quote " in ist
Sorry if this was answered before but I couldn't find anything.
I have to create ZIP files on a regular basis that must be encrypted with a pssword. This password contains special characters, and especially the double quote ". taking aa"a as an example password, my command line would be something like pacomp -a -saa"a -e2 -p myfile.zip myfile.txt ... but this doesn't work because the quotation mark is interpreted as the beginning of a string. I tried escaping the " sign with "", \" and ^", but nothing of this works (in fact, with "", pacomp created a file but with the password aaa instead of aa"a ). ![]() Any advice? Thanks! |
| The Following User Says Thank You to Halvar For This Useful Post: | ||
spwolf (05-30-2010) | ||
|
#2
|
||||
|
||||
|
Hi!
I haven't tested using " in the password field, because the password I set can't be used when I try to extract the file. Maybe I'm doing something wrong .Here's my command for creating the archive with password. Code:
pacomp -a -p -ssecret -s0 TestPassword.zip Logfile.log PowerArchiver Command Line (PACL) Version 6.01 [Feb 07 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\TestPassword.zip preparing to compress... adding: Logfile.log --> Done. [100%] All OK Code:
paext -e -ssecret TestPassword.zip PowerArchiver Command Line (PACL) Version 6.01 [Feb 07 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\TestPassword.zip [ZIP] extracting: Logfile.log *** Message: Invalid password secret *** Message: Invalid password secret *** Message: Invalid password secret --> CRC ERROR! [100%] *** Error: File fails CRC check I'm using PACL 6.01 and Win XP Sp3 Kind Regards Micke |
| The Following User Says Thank You to Micke For This Useful Post: | ||
spwolf (05-30-2010) | ||
|
#3
|
||||
|
||||
|
micke try c1 or c2 and see how it goes...
__________________
ConeXware, Inc. latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver. |
|
#4
|
||||
|
||||
|
Quote:
__________________
ConeXware, Inc. latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver. |
|
#5
|
|||
|
|||
|
got it, thanks Halvar!!
|
|
#6
|
||||
|
||||
|
Hi!
I don't know what that parameter (c1, c2) does . Anyway I think I have found the problem now.First without the -e parameter Code:
D:\PACL_Test>pacomp -a -p -ssecret TestPassword.zip Logfile.log PowerArchiver Command Line (PACL) Version 6.01 [Feb 07 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\TestPassword.zip preparing to compress... adding: Logfile.log --> Done. [100%] All OK D:\PACL_Test> Code:
D:\PACL_Test>paext -e -ssecret TestPassword.zip PowerArchiver Command Line (PACL) Version 6.01 [Feb 07 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\TestPassword.zip [ZIP] extracting: Logfile.log --> Done. [100%] D:\PACL_Test> Code:
D:\PACL_Test>pacomp -a -p -ssecret -e0 TestPassword_e0.zip Logfile.log PowerArchiver Command Line (PACL) Version 6.01 [Feb 07 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\TestPassword_e0.zip preparing to compress... adding: Logfile.log --> Done. [100%] All OK D:\PACL_Test> Code:
D:\PACL_Test>paext -e -ssecret TestPassword_e0.zip PowerArchiver Command Line (PACL) Version 6.01 [Feb 07 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\TestPassword_e0.zip [ZIP] extracting: Logfile.log --> Done. [100%] D:\PACL_Test> Code:
D:\PACL_Test>pacomp -a -p -ssecret -e1 TestPassword_e1.zip Logfile.log PowerArchiver Command Line (PACL) Version 6.01 [Feb 07 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\TestPassword_e1.zip preparing to compress... adding: Logfile.log --> Done. [100%] All OK D:\PACL_Test> Code:
D:\PACL_Test>paext -e -ssecret TestPassword_e1.zip PowerArchiver Command Line (PACL) Version 6.01 [Feb 07 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\TestPassword_e1.zip [ZIP] extracting: Logfile.log --> Done. [100%] D:\PACL_Test> Code:
D:\PACL_Test>pacomp -a -p -ssecret -e2 TestPassword_e2.zip Logfile.log PowerArchiver Command Line (PACL) Version 6.01 [Feb 07 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\TestPassword_e2.zip preparing to compress... adding: Logfile.log --> Done. [100%] All OK D:\PACL_Test> Code:
D:\PACL_Test>paext -e -ssecret TestPassword_e2.zip PowerArchiver Command Line (PACL) Version 6.01 [Feb 07 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\TestPassword_e2.zip [ZIP] extracting: Logfile.log --> Done. [100%] D:\PACL_Test> Code:
pacomp -a -p -ssecret -s0 TestPassword.zip Logfile.log ![]() ![]() ![]() I didn't even noticed this until now when I look at my post to see what parameter that I have used. My apologies for bringing this up. There's no problem with the password set in PACOMP, only brain meltdown behind the keyboard ![]() Kind Regards Micke |
|
#7
|
||||
|
||||
|
ok, np... thank you!
__________________
ConeXware, Inc. latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver. |
|
#8
|
||||
|
||||
|
Quote:
__________________
ConeXware, Inc. latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver. |
|
#9
|
||||
|
||||
|
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. |
|
#10
|
||||
|
||||
|
-s@filename to pickup password from file...
__________________
ConeXware, Inc. latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver. |
|
#11
|
||||
|
||||
|
Hi!
Time for another test. This time with quote in password. Here's the result from the test Create a archive with password = aa"a Code:
D:\PACL_Test>pacomp -a -saa"a -e2 -p Test3.zip PICT0030.jpg
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
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:
Code:
D:\PACL_Test>pacomp -a -saa^"a -e2 -p Test3.zip PICT0030.jpg
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
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:
Content of password.txt Code:
aa"a Code:
D:\PACL_Test>pacomp -a -s@password.txt -e2 -p Test3.zip PICT0030.jpg 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\Test3.zip preparing to compress... adding: PICT0030.JPG --> Done. [100%] All OK D:\PACL_Test> Code:
D:\PACL_Test>paext -t Test3.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\Test3.zip [ZIP] testing: PICT0030.JPG Enter password for PICT0030.JPG: aaa *** Message: Invalid password aaa Enter password for PICT0030.JPG: aa"a --> OK [100%] D:\PACL_Test> Test result: OK with remark The user should not have to put the password in a textfile to use quote in the password. On the other hand the workaround by using a textfile will solve the problem with quote in the password. Since I'm not sure what the expected result would be, but from the post of spwolf I get the impression that it should be possible now to use quote in a password when using PACL 6.02 even without a password stored in a textfile. Kind Regards Micke |
|
#12
|
||||
|
||||
|
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:
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:
Content of password.txt Code:
aa"a 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> 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> Kind Regards Micke |
| The Following User Says Thank You to Micke For This Useful Post: | ||
Mili (02-07-2012) | ||
|
#13
|
|||
|
|||
|
Thanks Micke!
|
|
#14
|
||||
|
||||
|
this is due to the CL, we can not use all the characters in command prompt due to its limitations, so we have to use password list if you really want to be creative.
__________________
ConeXware, Inc. latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver. |
| The Following User Says Thank You to spwolf For This Useful Post: | ||
Micke (03-30-2012) | ||
|
#15
|
||||
|
||||
|
Thanks for the info and since it's working when putting the password in a textfile.
Kind Regards Micke |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FIXED] Dont remember "highlight archives"-PA2007 10.20.05b3 | Virtual_ManPL | Tech Support | 8 | 08-12-2007 05:47 PM |
| show "Enter Password/Reenter Password" in one window | masu | Wishlist | 5 | 03-18-2007 10:00 AM |
| PBS "archive attribute" settings prevent "full" backup | jsjansen | Wishlist | 0 | 07-20-2004 03:08 PM |