Yes, I find it very useful! I'd like to know where you'd found documentation about the use/syntax in this particular registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\
The .cmd file is used to trim off the first "\\" from %D. Do you think it's possible to do so without using external file? > -----Message d'origine----- > De : Michael Pellegrino [mailto:[EMAIL PROTECTED] > Envoyi : mardi 11 novembre 2003 20:09 > @ : [EMAIL PROTECTED] > Objet : Starting VNCViewer by right clicking on Machine in > Network Neighborhood > > > I was looking for this information and having a lot of > trouble finding it. My brother came up with this. I've only > tested this on Windows 2000 and it works great. Sometimes > the simple stuff is really elegant... > > Here is a registry key to import: > > -----cut here ---- vnc.reg > Windows Registry Editor Version 5.00 > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\VNC] > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\VNC\command] > @="c:\\startvnc.cmd \"%D\"" > --- cut here > > Here is the command file to launch VNCVIEWER - name it > "startvnc.cmd" or change the name in the registry key. > > ----cut here--- startvnc.cmd > set addr=%1 > start C:\Progra~1\RealVNC\vncviewer.exe %addr:~3,-1%:5900 > exit > ----cut heree--- > > Just import the registry key, copy the above commands to a > file named "c:\startvnc.cmd". > > That's all there is to it. > > > This depends on the NETBIOS name of the computer being the > same as the DNS name, which is the default. > > Hope someone finds this useful. > > > Mike _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list