you can call this function in an powershell window [run powershell.exe]
if your VST3 Pluhins are in the Standard folder (C:\Program Files\Common Files\VST3)
with following syntax
.\AddVST3.ps1 -VST_Plugins c:\tmpvst
c:tmpvst is an example u can Also Use (c:\Sawstudio64\VST_Plugins) or the path to your VST_Plugins directory
or use al parameters in the script
.\AddVST3.ps1 -VST_Plugins path_to_your_VST_Plugins_Folder -VST3Directory Path_to_your_vst3_folder
put the code in a file named AddVST3.ps1
Code: Select all
param(
[string]$VST3Directory = "C:\Program Files\Common Files\VST3",
[string]$VST_Plugins
)
# targetdir check if exists and create it
if (-not (Test-Path $VST_Plugins)) {
New-Item -ItemType Directory -Path $VST_Plugins | Out-Null
}
# find .vst3 files recursively
$files = Get-ChildItem -Path $VST3Directory -Filter *.vst3 -Recurse -File
foreach ($file in $files) {
# create ini File
$iniName = [System.IO.Path]::GetFileNameWithoutExtension($file.Name) + ".ini"
$iniPath = Join-Path $VST_Plugins $iniName
# content: Full Path
$content = $file.FullName
# write in US-ASCII
Set-Content -Path $iniPath -Value $content -Encoding Ascii
}