Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\myprotocol]
"URL Protocol"=""
@="URL:Myprotocol Protocol"
[HKEY_CLASSES_ROOT\myprotocol\shell]
[HKEY_CLASSES_ROOT\myprotocol\shell\open]
[HKEY_CLASSES_ROOT\myprotocol\shell\open\command]
@="\"C:\\myprotocol.bat\" \"%1\""
@echo off
set "path=%~1"
setlocal enabledelayedexpansion
set path=%path:myprotocol://=%
set path=%path:"=%
set path=%path:/=\%
set path=!path:%%20= !
set path=!path:%%5C=\!
C:\Windows\explorer.exe "%path%"