I am using the following on a button to extract an archive to same directory :
Command : "C:\Program Files\7-Zip\7zG.exe"
Params : x %P%N -o%P%O
Start Path : %P
When used with an archive with no spaces in the archive name it works as intended, but when used with an archive that does have a space in the name it does not do anything.
Any help appreciated.
Bug with 7z extraction button
Moderators: white, Hacker, petermad, Stefan2
Re: Bug with 7z extraction button
Add a question mark in front of the parameters to see the full parameters before confirming them. Check them carefully. My guess is that it should bein the parameters field. Note that %P%N (in this order!) is automatically quoted by TC.
Regards
Dalai
Code: Select all
x %P%N -o"%P%O"
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
-
- Junior Member
- Posts: 42
- Joined: 2017-09-21, 10:35 UTC
Re: Bug with 7z extraction button
Many thanks that fixed it - why is the %P%O not likewise automatically quoted ? (bug maybe ?)
Re: Bug with 7z extraction button
darren1234 wrote: ↑2018-08-25, 06:39 UTC why is the %P%O not likewise automatically quoted ? (bug maybe ?)
You mean I would use smtg like '%P%O.txt' and I would get ' "%P%O".txt ' as result?
Like
C:\Temp\Install.exe
%P%O.txt >> automatically quoted >> "%P%O".txt
"C:\Temp\install".txt
?
Re: Bug with 7z extraction button
2darren1234
It is also possible to extract files without a button in the current directory:
If you want to extract files from an archive with ALT+F6 (or ALT+F9) in TC, then simply overwrite the suggested path with a "." point.
Files from a .zip archive are extracted then into the current directory.
Actually, you could have continued right here: viewtopic.php?f=3&t=50792
It is also possible to extract files without a button in the current directory:
If you want to extract files from an archive with ALT+F6 (or ALT+F9) in TC, then simply overwrite the suggested path with a "." point.
Files from a .zip archive are extracted then into the current directory.
Actually, you could have continued right here: viewtopic.php?f=3&t=50792