3日がかりで、VSTiやVSTeをかき集めていました。
ダウンロードされるVSTファイルは、zipファイルか、インストーラーばかり。
大量にあるzipファイルを展開して、その中のdllファイルだけを抽出するのが、
とてもめんどうになったので、プログラムをしていました。
いろいろ問題があって、自分にしか使えないような、そんなプログラムしかできませんでした。
1つのプログラムで、全自動でいろんなzipファイルを展開してくれるようにはできなかった。

せいぜい、pyinstallerを使って(WindowsDefender対策が必要)、それを同時起動させて、
うまいこと使うぐらい。
【Pyinstaller】Windows Defenderに引っかからないようにする(Qiita)
https://qiita.com/tru-y/items/cb3cebe9612d367dccb2
・・・関数内関数を実現させるには、
関数を終わらせる可能性ばかりのreturnは使ってはいけないということになりますね。
もう、うつ病の発作がすごいことになっていたので、
もう途中で見切りを付けました。

そんなスクリプト。
ファイルの展開には、「7-zip」が必要です。
しかも、パスを通さないと使い物になりません。
7-Zipのコマンドライン操作(クリエイターの雑記帳 CGBeginner)
https://cgbeginner.net/7-zip/
そんなめんどうなものでも、WinRARやLhaplusのような使いにくさはないので、
スクリプトに織り込んで使うのなら、7-zipを使うのが正解のようです。

2024/5/19追記
このスクリプトでDLLファイルを抽出しても、DLLが機能しないことが多いので、
VST的には、使う意味ないです。
せいぜい改造して、何かを抽出するアプリを作るのが関の山。

import subprocess
import os
import shutil
from pathlib import Path
import stat


pasu    ="./"
omeate  ="抽出したファイル/"
tekisuto="説明書など/"
itizi   ="えおいfhじぇをいfぐいrgfcヴさhgd/"
    

#pasuのところにあるファイルを全部把握する
fairu_risuto=[]
for fd_path, sb_folder, sb_file in os.walk(pasu):
    for fil in sb_file:
        fairu_risuto.append(fd_path + '/' + fil)

def foruda_tukuru():
    if os.path.isdir(omeate)==False:
        os.mkdir(omeate)
    if os.path.isdir(tekisuto)==False:
        os.mkdir(tekisuto)
    if os.path.isdir(itizi)==False:
        os.mkdir(itizi)

def foruda_korosu():
    if os.path.isdir(itizi)==True:
        os.chmod(itizi,0o777)
        os.chmod(path=itizi, mode=stat.S_IWRITE)
        shutil.rmtree(itizi)

def hantei(fairu):
    if fairu.endswith(".lzh")==True or\
       fairu.endswith(".LZH")==True or\
       fairu.endswith(".zip")==True or\
       fairu.endswith(".ZIP")==True or\
       fairu.endswith(".rar")==True or\
       fairu.endswith(".RAR")==True or\
       fairu.endswith(".7z")==True or\
       fairu.endswith(".7Z")==True or\
       fairu.endswith(".xz")==True or\
       fairu.endswith(".gz")==True or\
       fairu.endswith(".bz2")==True :
        return "圧縮ファイル"
    elif fairu.endswith(".dll")==True or\
         fairu.endswith(".DLL")==True :
        return "dll"
    elif fairu.endswith(".exe")==True or\
         fairu.endswith(".EXE")==True :
        return "実行ファイル"
    elif fairu.endswith(".pdf")==True or\
         fairu.endswith(".PDF")==True or\
         fairu.endswith(".txt")==True or\
         fairu.endswith(".TXT")==True or\
         fairu.endswith(".md")==True or\
         fairu.endswith(".MD")==True or\
         fairu.endswith(".doc")==True or\
         fairu.endswith(".DOC")==True :
        return "説明書"

def yaru():
    foruda_tukuru()
    i=0
    while i<len(fairu_risuto):
        if hantei(fairu_risuto[i])=="圧縮ファイル":
            os.chmod(fairu_risuto[i],0o777)
            subprocess.run('"C:/Program Files/7-Zip/7z.exe" x "{0}" -o"{1}" -y'.format(fairu_risuto[i], itizi))
        elif hantei(fairu_risuto[i])=="説明書":
            os.chmod(fairu_risuto[i],0o777)
            os.chmod(path=fairu_risuto[i], mode=stat.S_IWRITE)
            if os.path.isfile(tekisuto)==False:
                shutil.copy2(fairu_risuto[i], tekisuto)
        elif hantei(fairu_risuto[i])=="dll":
            os.chmod(fairu_risuto[i],0o777)
            os.chmod(path=fairu_risuto[i], mode=stat.S_IWRITE)
            if os.path.isfile(omeate)==False:
                shutil.copy2(fairu_risuto[i], omeate)
        i+=1

    unko=[]
    for fd_path, sb_folder, sb_file in os.walk(itizi):
        for fil in sb_file:
            unko.append(fd_path + '/' + fil)
    i=0
    while i<len(unko):
        if hantei(unko[i])=="dll":
            os.chmod(unko[i],0o777)
            os.chmod(path=unko[i], mode=stat.S_IWRITE)
            if os.path.isfile(omeate)==False:
                shutil.copy2(unko[i], omeate)
                print("{}を抽出".format(os.path.basename(unko[i])))
        elif hantei(unko[i])=="説明書":
            os.chmod(unko[i],0o777)
            os.chmod(path=unko[i], mode=stat.S_IWRITE)
            if os.path.isfile(tekisuto)==False:
                shutil.copy2(unko[i], tekisuto)
                print("{}を抽出".format(os.path.basename(unko[i])))
        else:
            os.chmod(unko[i],0o777)
            os.chmod(path=unko[i], mode=stat.S_IWRITE)
        i+=1
    foruda_korosu()
    print("できた~!")

yaru()




参考文献

ツールの使用方法(So-zou.jp)
https://so-zou.jp/software/tool/file/7-zip/#no6

7-Zipのコマンドテクニック(オンラインPC館)
https://onlinepckan.net/technique/tooltechnique1/sevenzipcommandtechnique.html

Python の subprocess(Qiita)
https://qiita.com/tanabe13f/items/8d5e4e5350d217dec8f5

フォルダーアクセス権限の変更(Qiita)
https://qiita.com/lulucowcow/items/7e69e36e5559f896a66d

[PYTHON] 指定したディレクトリ以下の全ファイルの読取り専用を外す (Windows) (GitHub)
https://gist.github.com/devlights/f6bf40fa42e8893e68305976e6b766b8

Pythonでパス文字列からファイル名・フォルダ名・拡張子を取得、結合(note.nkmk.me)
https://note.nkmk.me/python-os-basename-dirname-split-splitext/