How to Remove the Vnc viewer servers lists

Find help for Frequently Asked Questions here - please look here first before posting an already answered question.

How to Remove the Vnc viewer servers lists

Postby bevtech » 2006-01-03 06:21

See below
Last edited by bevtech on 2006-01-03 13:54, edited 2 times in total.
bevtech
Super-Mod
Super-Mod
 
Posts: 2191
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

Postby lizard » 2006-01-03 08:27

ClearMRU.bat
[syntax="batch"]@echo off
echo Emptying VNCViewer's recent sessions list...
set tmpfile=.reg
:testfilename
if exist %tmpfile% goto appendprefix
goto input
:appendprefix
set tmpfile=_%tmpfile%
goto testfilename
:input
echo REGEDIT4>>%tmpfile%
echo [-HKEY_CURRENT_USER\Software\ORL\VNCviewer\MRU]>>%tmpfile%
regedit /s %tmpfile%
del %tmpfile%
[/syntax]

Moderated by redge at 2008-03-22 09:53:
replaced code by syntax=batch
Last edited by lizard on 2008-03-22 09:53, edited 2 times in total.
lizard
Former moderator
Former moderator
 
Posts: 172
Joined: 2004-05-03 07:43

Re: How to Remove the Vnc viewer servers lists

Postby Pete-ohki » 2011-09-27 03:26

I just found this does not work for me. I'm using the new Windows 7. When I checked that registry key (before trying to delete it), I found that it did not have all the server/host IPs that should be there. Afterwards, when I did a search for "VNC", I finally found a ..\Software\ORL\VNCviewer\MRU registry key in the HKEY_USERS tree, under a really long numeric key, that had all the current IPs in the list. Modifying that key yielded good results.

Just thought I share.
Pete-ohki
 
Posts: 5
Joined: 2011-08-07 11:34

Re: How to Remove the Vnc viewer servers lists

Postby B » 2011-09-27 13:59

That "numeric key" hive should be the same thing you find under HKEY_CurrentUser when you're logged in as the person who uses that viewer.
B
Super-Mod
Super-Mod
 
Posts: 2347
Joined: 2009-09-09 14:05

Re: How to Remove the Vnc viewer servers lists

Postby Pete-ohki » 2011-09-30 02:59

It should be, but it wasn't for me.
*Hmmm* It is highly possible that I installed the viewer under an administrator account (and of course, used the viewer only in a user account), and the viewer has only been storing the IP numbers in the administrator account's copy of the MRU key.

Update: Nope, your right; I essentially kept running regedit as an administrator. If I run regedit regularly, I can view the correct MRU key in HKEY_CURRENT_USER. A pity; as a user, I can only "merge" a reg file into the registry via the command line, "regedit /s".
Pete-ohki
 
Posts: 5
Joined: 2011-08-07 11:34


Return to FAQ

Who is online

Users browsing this forum: No registered users and 3 guests