Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to extract all the zip file with different password?

49 views
Skip to first unread message

EX咖喱棒

unread,
Sep 28, 2024, 3:21:33 PM9/28/24
to Bandizip for Windows forum
Dear Developers, 
I have several files stored in different locations, and each file has a different password.
The password corresponding to each file is stored in the text in the same directory.

I have made a txt file for using /cmdfile command to extract all the archives but failed.

Here is the powershell commands I used to generate a txt file:

$item=Get-ChildItem -recurse -filter "*.txt" | Select-Object FullName
    write-output "bx -target:name">>F:\Users\user\Downloads\test\test.txt
    foreach($i in $item){
    $c=get-content $i.fullName
    if ($c -match "pass|password"){
        $p=Split-Path -Path "$($i.fullName)" -Parent
        $pwd=$($c -replace "^.*pass \: |^.*password \: ","")
        write-output "$($(Get-ChildItem -path $p\* -include "*.zip","*.rar","*.7z"|`
        select-object FullName).fullname|`
        foreach-object -process {'"'+$_+'"'}|`
        out-string -stream) -p:$pwd">>F:\Users\user\Downloads\test\test.txt
}}

What should I do?


KH Park

unread,
Sep 30, 2024, 1:19:05 AM9/30/24
to Bandizip for Windows forum

Sorry. Bandizip cannot handle multiple archives with multiple passwords.


You have to make a batch file that looks like this and launch it.

Bandizip.exe x -p:abc abc.zip
Bandizip.exe x -p:xyz xyz.zip



Best Regards, 
Park, KH



--
You received this message because you are subscribed to the Google Groups "Bandizip for Windows forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bandizip-win...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bandizip-win/ff11ec64-73ba-4590-93cf-e076e7dbe0abn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages