Link to home
Start Free TrialLog in
Avatar of sjhergott
sjhergott

asked on

Context Menu for Network PC

We want to be able to right click on a network computer and select an application from the context menu.  Such as VNC, Telnet, Ping, etc.
We were able to do this by adding the following registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Network\Type\2\shell\VNC\command
with a value of    C:\Program Files\RealVNC\VNC4\vncviewer.exe "%1"

A simular registry setting will be made for telnet or ping etc.

However the "%1" uses my computers name rather than the network pc.  With out the "%1" it still works but does not send any parameter to the app.

Does anybody know how to get the app to use the network pc name that we right click on rather than my pc?
Avatar of valicon
valicon
Flag of United States of America image

Try using C:\Program Files\RealVNC\VNC4\vncviewer.exe "%computer%"

Hope this helps :)
Avatar of sjhergott
sjhergott

ASKER

Useing the value C:\Program Files\RealVNC\VNC4\vncviewer.exe "%computer%" I get an error message;

VNC Viewer : Error
         unable to resolve host by name:  No more results can be returned by WSALookupServiceNext. (10110)

any comments??
ignore error message posted above.

basically the "%computer%" will work with the single computer thats name is entered in the value, but we have many computers in our domain (200+) and we want to capture the computer name that we click on in network neighborhood.

any other ideas??
ASKER CERTIFIED SOLUTION
Avatar of valicon
valicon
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The %computer% variable should work......

is vncviewer in listening mode?