Bren
Bren

Reputation: 615

Custom URI scheme not working?

So I've made a shortcut for testing purposes, and here's the target:

"C:\Program Files\uvnc bvba\UltraVNC\vncviewer.exe" -connect 111.222.333.444:1 -notoolbar -nostatus -quickoption 3

As you can see I'm trying to pass the ip argument as %1 however it's not working (yes I'm using a working ip, as I connect to it on a regular basis using that shortcut I made):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\vnc]
@="URL:vnc Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\vnc\shell\open\command]
@="\"C:\\Program Files\\uvnc bvba\\UltraVNC\\vncviewer.exe\" -connect %1:1 -notoolbar -nostatus -quickoption 3"

Upvotes: 1

Views: 1516

Answers (2)

Roman V. Kalmin
Roman V. Kalmin

Reputation: 1

A small improvement - the cmd window is automatically closed, leaving only the UltraVNC window.

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\vnc]
    @="URL:vnc Protocol"
    "URL Protocol"=""
    
    [HKEY_CLASSES_ROOT\vnc\shell\open\command]
    @="cmd /V:ON /C set address=%1 && set address=!address:~6,-2! && start /d \"C:\\Program Files\\uvnc bvba\\UltraVNC\\\" vncviewer.exe -connect !address!-notoolbar -nostatus -noauto"

Upvotes: 0

Giulio Pierucci
Giulio Pierucci

Reputation: 121

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\vnc]
@="URL:vnc Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\vnc\shell\open\command]
@="cmd /V:ON /C set address=%1 && set address=!address:~6,-2! && \"C:\\Program Files\\uvnc bvba\\UltraVNC\\vncviewer.exe\" -connect !address!-notoolbar -nostatus -noauto -8greycolors"

Upvotes: 1

Related Questions