Winbox URL Protocol Handler
Exported Windows Registry Entries
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\winbox]
"URL Protocol"=""
[HKEY_CLASSES_ROOT\winbox\shell]
[HKEY_CLASSES_ROOT\winbox\shell\open]
[HKEY_CLASSES_ROOT\winbox\shell\open\command]
@="\"C:\\Scripts\\WinBox4\\winbox-protocol-helper.bat\" \"%1\""
C:\Scripts\WinBox4\winbox-protocol-helper.bat
@echo off
FOR /F "tokens=1-4 delims=/" %%A IN ("%1") DO start "" "C:\Scripts\WinBox4\WinBox.exe" %%B
PowerShell to create the above registry entries
#Requires -RunAsAdministrator
$root = 'Registry::HKEY_CLASSES_ROOT\winbox'
$key = "$root\shell\open\command"
$cmd = '"C:\Scripts\WinBox4\winbox-protocol-helper.bat" "%1"'
if (-not (Test-Path $key)) { New-Item -Path $key -Force | Out-Null }
New-ItemProperty -Path $root -Name 'URL Protocol' -Value '' -PropertyType String -Force | Out-Null
Set-Item -Path $key -Value $cmd