需要修改注册表,为打开方式添加参数/config
[HKEY_CLASSES_ROOT\Applications\vncviewer.exe\shell\open\command]
@="\"xxxxxx\\vncviewer.exe\" /config \"%1\""
HKEY_CLASSES_ROOT\Applications\vncviewer.exe\shell\open\command
"C:\xxx\vncviewer.exe" /config "%1"
注意自己的vncviewer路径
help message
vncviewer.exe /?
---------------------------
UltraVNC info
---------------------------
Usage includes:
vncviewer [/8bit] [/swapmouse] [/shared] [/belldeiconify]
[/listen [portnum]] [/fullscreen] [/viewonly] [/notoolbar]
[/scale a/b] [/config configfile] [server:display]
[/emulate3] [/quickoption n] [/serverscale n]
[/askexit] [/user msuser] [/password clearpassword]
[/nostatus] [/dsmplugin pluginfilename.dsm] [/autoscaling]
[/autoreconnect delayInSeconds]
[/reconnectcounter number_reconnect_attempt]
[/nohotkeys] [/proxy proxyhost [portnum]] [/256colors] [/64colors]
[/8colors] [/8greycolors] [/4greycolors] [/2greycolors]
[/encoding [xz | xzyw | zrle | zywrle | tight | zlib | zlibhex | ultra | ultra2 | corre | rre | raw]
[/encodings xz zrle ...] (in order of priority)
[/autoacceptincoming] [/autoacceptnodsm] [/disablesponsor][/InfoMsg "Messages need quotes"]
[/requireencryption] [/enablecache] [/throttlemouse n] [/socketkeepalivetimeout n]
For full details see documentation.
---------------------------
确定
---------------------------
标签:exe,vnc,viewer,config,---------------------------,ultra,vncviewer,双击
From: https://www.cnblogs.com/q-z-lin/p/18326839