Let's say MyArchive.7z has been created in 7z-GUI, password protected with AB"AB
In the console the command to extract such a password protected archive is 7za x "-pMyPassword" "MyArchive.7z"
Following, however, won't work here, as " obviously needs to be escaped 7za x "-pAB"AB" "MyArchive.7z"
Now, how do I extract MyArchive.7z in the console?
Any help would be appreciated very much.
Last edit: Stefan Martens 2024-03-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Let's say MyArchive.7z has been created in 7z-GUI, password protected with AB"AB
In the console the command to extract such a password protected archive is
7za x "-pMyPassword" "MyArchive.7z"
Following, however, won't work here, as " obviously needs to be escaped
7za x "-pAB"AB" "MyArchive.7z"
Now, how do I extract MyArchive.7z in the console?
Any help would be appreciated very much.
Last edit: Stefan Martens 2024-03-23
Echo AB^"AB| 7za x "MyArchive.7z"
Working!
Thank you very much, Serhii!
such command can help:
there are no another ways now.
Last edit: Igor Pavlov 2024-03-29
Maybe like this:
Maybe if there was option to read password from a file, but there isn't.
Last edit: Sam Tansy 2024-03-29